Skip to content

Commit

Permalink
Update page.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Another-DevX authored May 25, 2024
1 parent 508cb30 commit f4aea69
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kiwi/src/app/user/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import { redirect } from 'next/navigation'
import React from 'react'

function Page () {
const isValidate = useUserValidated()
if (isValidate.isLoading) return null
console.debug(isValidate.data, isValidate.isFetched)
if (!isValidate.data && isValidate.isFetched) redirect('/validation')


return (
<section className='p-10 pt-20 flex flex-col gap-5 justify-center items-center'>
Expand Down

0 comments on commit f4aea69

Please sign in to comment.