Merge pull request #2676 from tomobre/fix/undefined-country

Fix/undefined country
pull/2677/head
Audric Ackermann 2 years ago committed by GitHub
commit 8202abe12b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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