[BUG] Toasts aren't working
Platform
Mac OS 15.5
Browser
Brave 1.79.126
Current Behavior
After joining the waitlist, the toast doesn't show up even though the request to API succeeded. This also happens to all the places toast() has been used.
Expected Behavior
The toast should show up when the toast() function is called.
Recurrence Probability
Always
Steps To Reproduce
- Enter a valid email in the input.
- Click Join waitlist
Anything else?
There are no errors in the console and I have tested this in local (using toast() outside all the if's).
Adding <Toaster /> to hero.tsx works, but obviously that's not a solution.
In my case, I just added the
Fixed the problem by changing
import { Toaster } from "../components/ui/sonner";
in layout.tsx to
import { Toaster } from "../components/ui/toaster";
uh @mazeincoding should i close this? i mean is it fixed?
oh yes it's fixed!