Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.

Commit 1a7101c

Browse files
Not synced error.
1 parent 198c122 commit 1a7101c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ui/js/ui.login.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ var UI = (function(UI, $, undefined) {
8787
if (connection.seed.match(/^[9]+$/)) {
8888
throw i18n.t("invalid_seed");
8989
}
90-
90+
9191
seedError = checkSeedStrength(seed);
9292
} catch (error) {
9393
console.log("UI.login: Error");
@@ -103,7 +103,12 @@ var UI = (function(UI, $, undefined) {
103103
UI.executeState(function(error) {
104104
if (error) {
105105
connection.seed = "";
106-
$("#login-btn").loadingError("connection_refused");
106+
console.log(error);
107+
if (error.message.match(/This operations cannot be executed: The subtangle has not been updated yet/i)) {
108+
$("#login-btn").loadingError("not_synced");
109+
} else {
110+
$("#login-btn").loadingError("connection_refused");
111+
}
107112
UI.initialConnection = false;
108113
UI.createStateInterval(500, false);
109114
} else {

0 commit comments

Comments
 (0)