Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ferso committed Nov 25, 2024
1 parent f424af5 commit da6e7e7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const GetSignupStep = (step: StepType) => {
export const useSignupFormHook = () => {
const timeout = 3000;
const [step, setStep] = useState(SignupSteps[0]);
const { signup, linkIcp, validateOtp } = useContext<any>(AuthContext);
const { signup, linkIcp, validateOtp, logout } = useContext<any>(AuthContext);
const [otpValue, setOtpValue] = useState<string>("");
const [inputs, setInputs] = useState<SignupInput>(inputProps);
const [error, _] = useState<string>("");
Expand Down Expand Up @@ -100,6 +100,10 @@ export const useSignupFormHook = () => {
}
}, [step]);

useEffect(() => {
logout();
}, []);

return {
step,
inputs,
Expand Down

0 comments on commit da6e7e7

Please sign in to comment.