Skip to content
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

fix(ui): correct toast message on domain archive/unarchive undo action #1687

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

unrenamed
Copy link
Contributor

What does this PR do?

Fixes #1652. toast.promise expects a function for success/error messages that returns either a ReactNode or a string — it does not support Promises. Using async/await caused the UI bug described in the issue.

How to test?

  1. Head over your Settings > Domains page
  2. Archive any domain you have and click the "Undo" button in a toast
  3. You should see a human-readable success messsage
  4. Same when undoing the unarchive action

Copy link

vercel bot commented Oct 30, 2024

@unrenamed is attempting to deploy a commit to the Dub Team on Vercel.

A member of the Team first needs to authorize it.

@unrenamed
Copy link
Contributor Author

@steven-tey This one is ready for peer review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Undoing an archived/unarchived link doesn't displays proper message on the toast
1 participant