Skip to content

Commit

Permalink
Fix type checking (#14047)
Browse files Browse the repository at this point in the history
  • Loading branch information
woxtu authored Jun 20, 2024
1 parent 77ae693 commit b683d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit b683d79

Please sign in to comment.