Commit 513e395d authored by tom's avatar tom

fix AuthGuard to ensure user link an email to their profile

parent 7e462f71
......@@ -53,7 +53,7 @@ const AuthGuard = ({ children, onAuthSuccess, ensureEmail }: Props) => {
{ authModal.isOpen && (
<AuthModal
onClose={ handleModalClose }
initialScreen={ profileQuery.data && !profileQuery.data.email && ensureEmail ? { type: 'email' } : { type: 'select_method' } }
initialScreen={ profileQuery.data && !profileQuery.data.email && ensureEmail ? { type: 'email', isAuth: true } : { type: 'select_method' } }
/>
) }
</>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment