Display the invalid account page when the refresh token is invalid

This commit is contained in:
Zoe Roux 2024-03-26 00:27:33 +01:00
parent 39ce601344
commit 13df17544c
No known key found for this signature in database

View File

@ -52,14 +52,15 @@ export const ConnectionError = () => {
</View> </View>
); );
} }
if (account.isVerified) return <ErrorView error={error} noBubble />; if (!account.isVerified) {
return ( return (
<View <View
{...css({ flexGrow: 1, flexShrink: 1, justifyContent: "center", alignItems: "center" })} {...css({ flexGrow: 1, flexShrink: 1, justifyContent: "center", alignItems: "center" })}
> >
<P>{t("errors.needVerification")}</P> <P>{t("errors.needVerification")}</P>
</View> </View>
); );
}
} }
return ( return (
<View {...css({ padding: ts(2) })}> <View {...css({ padding: ts(2) })}>