Skip to content

Fix error in password reset form #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2025
Merged

Conversation

mihajlo-ra92
Copy link
Contributor

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 :)


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

`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 :)
Copy link

vercel bot commented Apr 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
convex-auth-docs ✅ Ready (Inspect) Visit Preview Apr 24, 2025 10:07pm

Copy link
Collaborator

@erquhart erquhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay - good catch, thanks for this!

@erquhart erquhart merged commit 187ce7c into get-convex:main May 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants