Skip to content

Commit b683d79

Browse files
authored
Fix type checking (#14047)
1 parent 77ae693 commit b683d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/frontend/src/account.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function fetchAccount(token: string, id?: string, forceShowDialog?: boolean): Pr
120120
res.json().then(done2, fail2);
121121
}))
122122
.then(async res => {
123-
if (res.error) {
123+
if ('error' in res) {
124124
if (res.error.id === 'a8c724b3-6e9c-4b46-b1a8-bc3ed6258370') {
125125
// SUSPENDED
126126
if (forceShowDialog || $i && (token === $i.token || id === $i.id)) {

0 commit comments

Comments
 (0)