(e)
| 39 | }; |
| 40 | |
| 41 | const closeAndLogout: CloseAuthModalFunc = (e) => { |
| 42 | if (user && !user.username) { |
| 43 | logout(LogoutReason.IncomleteOnboarding); |
| 44 | } |
| 45 | onClose(e); |
| 46 | }; |
| 47 | |
| 48 | const { onContainerChange, formRef, onDiscardAttempt } = useAuthForms({ |
| 49 | onDiscard: closeAndLogout, |