Merge pull request #2676 from tomobre/fix/undefined-country
Fix/undefined country
This commit is contained in:
commit
8202abe12b
|
@ -121,7 +121,7 @@ const OnionPathModalInner = () => {
|
|||
{nodes.map((snode: Snode | any) => {
|
||||
let labelText = snode.label
|
||||
? snode.label
|
||||
: `${countryLookup.byIso(ip2country(snode.ip))?.country}`;
|
||||
: countryLookup.byIso(ip2country(snode.ip))?.country;
|
||||
if (!labelText) {
|
||||
labelText = window.i18n('unknownCountry');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue