File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/app/settings/delete-account Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export default function DeleteAccountPage() {
14
14
if ( ! token ) redirect ( '/' ) ;
15
15
16
16
const profile : UserToken = jwtDecode ( token ) ;
17
- if ( profile . roles ! == "ROLE_DEMO" ) redirect ( '/' )
17
+ if ( profile . roles == "ROLE_DEMO" ) redirect ( '/' )
18
18
19
19
return (
20
20
< div className = "h-full flex flex-col" >
@@ -28,7 +28,7 @@ export default function DeleteAccountPage() {
28
28
</ div >
29
29
</ MainContent >
30
30
< div className = "px-6 mb-6" >
31
- < Link href = "/api/auth/delete-account" className = "rounded-xl bg-white/5 text-destructive text-md font-bold text-center py-3 mt-4 mb-2 block w-full max-w-screen-md mx-auto" > Excluir conta</ Link >
31
+ < a href = "/api/auth/delete-account" className = "rounded-xl bg-white/5 text-destructive text-md font-bold text-center py-3 mt-4 mb-2 block w-full max-w-screen-md mx-auto" > Excluir conta</ a >
32
32
< Link href = "/settings" className = "rounded-xl text-center py-3 block w-full max-w-screen-md mx-auto" > Agora não</ Link >
33
33
</ div >
34
34
</ Main >
You can’t perform that action at this time.
0 commit comments