summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--gui/src/renderer/app.tsx2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ec6d9418bc..86cd05bb70 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -41,6 +41,7 @@ Line wrap the file at 100 chars. Th
### Fixed
- Stop allowing the wrong IPv6 net fe02::/16 in the firewall when allow local network was enabled.
Instead allow the correct multicast nets ff02::/16 and ff05::/16.
+- Fix the regression that allowed to get past the login screen using the invalid account token.
#### macOS
- Raise max number of open files for the daemon to 1024. Should prevent threads from panicking.
diff --git a/gui/src/renderer/app.tsx b/gui/src/renderer/app.tsx
index fba3733e94..d98c7d23e9 100644
--- a/gui/src/renderer/app.tsx
+++ b/gui/src/renderer/app.tsx
@@ -243,7 +243,7 @@ export default class AppRenderer {
this.accountDataCache.fetch(accountToken, {
onFinish: () => resolve({ status: 'verified' }),
onError: (error): AccountFetchRetryAction => {
- if (error instanceof InvalidAccountError) {
+ if (error.message === new InvalidAccountError().message) {
reject(error);
return AccountFetchRetryAction.stop;
} else {