fix: undefined country removed strings in onion status

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

@ -121,7 +121,7 @@ const OnionPathModalInner = () => {
{nodes.map((snode: Snode | any) => { {nodes.map((snode: Snode | any) => {
let labelText = snode.label let labelText = snode.label
? snode.label ? snode.label
: `${countryLookup.byIso(ip2country(snode.ip))?.country}`; : countryLookup.byIso(ip2country(snode.ip))?.country;
if (!labelText) { if (!labelText) {
labelText = window.i18n('unknownCountry'); labelText = window.i18n('unknownCountry');
} }

Loading…
Cancel
Save