Prevent using any profile url when account is deleted

This commit is contained in:
ErickSkrauch 2020-07-28 00:42:45 +03:00
parent dd506b894c
commit 8ee2323bfa
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -46,7 +46,10 @@ const ProfileController: ComponentType<Props> = ({ user, onSubmit, refreshUserDa
}}
>
{user.isDeleted ? (
<AccountDeletedPage />
<Switch>
<Route path="/" exact component={AccountDeletedPage} />
<Redirect to="/" />
</Switch>
) : (
<Switch>
<Route path="/profile/mfa/step:step([1-3])" component={MultiFactorAuthPage} />