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

Fix/undefined country
This commit is contained in:
Audric Ackermann 2023-02-15 10:52:15 +11:00 committed by GitHub
commit 8202abe12b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}