You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`setStep` is defined like this:
```
const [step, setStep] = useState<"forgot" | { email: string }>("forgot");
```
But we try to set the step to `signIn` like this:
```
<button type="button" onClick={() => setStep("signIn")}>
```
And we get this error:
```
Argument of type '"signIn"' is not assignable to parameter of type 'SetStateAction<"forgot" | { email: string; }>'
```
So I just fixed the small mistake by changing `setStep("signIn")` to `setStep("forgot")`.
Hope this helps :)
0 commit comments