fix: undefined country removed strings in onion status

pull/2676/head
tomobre 2 years ago
parent 8584edf302
commit 46c166d0d5

@ -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…
Cancel
Save