From eafb5997bcce68119a07a2100c422eb89b9bcd24 Mon Sep 17 00:00:00 2001 From: Rui Ying Date: Tue, 13 Sep 2022 05:23:50 -0700 Subject: [PATCH] Workaround type errors --- src/App.tsx | 2 +- src/screens/Login.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index cf80ea76..d18a7fa2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -724,7 +724,7 @@ const Container = () => { /> ) : ( - + )} { (async () => { if (loading && error && !loggingIn) { - await new Promise(resolve => setTimeout(resolve, 500)); + await new Promise(resolve => setTimeout(resolve as any, 500)); if (error?.reason === FailReason.BAD_CREDENTIAL) { toast(t('credentialError'), 'error'); } else {