diff --git a/packages/shared/lib/walletApi.ts b/packages/shared/lib/walletApi.ts index ea217fc26ca..b2c465b3a3e 100644 --- a/packages/shared/lib/walletApi.ts +++ b/packages/shared/lib/walletApi.ts @@ -242,6 +242,9 @@ const handleError = (type: ErrorType | ValidatorErrorTypes, error: string): { ty if (error.includes('message history and balance')) { return ('error.account.empty') } + if (error.includes('No synced node')) { + return ('error.node.noSynced') + } return getErrorMessage(type) } diff --git a/packages/shared/locales/en.json b/packages/shared/locales/en.json index 43644e1b361..6c602b138be 100644 --- a/packages/shared/locales/en.json +++ b/packages/shared/locales/en.json @@ -634,7 +634,8 @@ "invalid": "Please enter a valid URL.", "https": "HTTPS is required. Set up a developer profile to use unsecured HTTP connections.", "duplicate": "This node has already been added.", - "unsynced": "The node you are trying to add is not synced." + "unsynced": "The node is not in sync.", + "noSynced": "No synced nodes are available." }, "global": { "generic": "Something went wrong."