diff options
| author | woxtu <woxtup@gmail.com> | 2024-06-20 16:24:10 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-20 16:24:10 +0900 |
| commit | b683d79f8b3efffa4498380a47f136d79e0ddbe7 (patch) | |
| tree | f6937b11712ee17b048616e47a89ea06e306517f | |
| parent | Enable to iterate over DOM collections (#14040) (diff) | |
| download | sharkey-b683d79f8b3efffa4498380a47f136d79e0ddbe7.tar.gz sharkey-b683d79f8b3efffa4498380a47f136d79e0ddbe7.tar.bz2 sharkey-b683d79f8b3efffa4498380a47f136d79e0ddbe7.zip | |
Fix type checking (#14047)
| -rw-r--r-- | packages/frontend/src/account.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/account.ts b/packages/frontend/src/account.ts index 7f20e0b1a2..f99b550a83 100644 --- a/packages/frontend/src/account.ts +++ b/packages/frontend/src/account.ts @@ -120,7 +120,7 @@ function fetchAccount(token: string, id?: string, forceShowDialog?: boolean): Pr res.json().then(done2, fail2); })) .then(async res => { - if (res.error) { + if ('error' in res) { if (res.error.id === 'a8c724b3-6e9c-4b46-b1a8-bc3ed6258370') { // SUSPENDED if (forceShowDialog || $i && (token === $i.token || id === $i.id)) { |