Skip to content

Fix toast notification duration consistency - #485

Open
Salman-Ahamed wants to merge 1 commit into
devfrom
fix/toast-notification-duration
Open

Fix toast notification duration consistency#485
Salman-Ahamed wants to merge 1 commit into
devfrom
fix/toast-notification-duration

Conversation

@Salman-Ahamed

@Salman-Ahamed Salman-Ahamed commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

🎯 What’s this PR about?

Fixes inconsistent toast timeout handling by unifying all timeout references to use a single computed value. Changes || to ?? for proper nullish coalescing and ensures the progress bar animation and close timeout use the same duration (5000ms default).


📎 Related ClickUp Ticket

https://app.clickup.com/t/86ewgwjmj


💻 Demo (optional)


✅ Checklist

  • Self-reviewed the code
  • Linked the correct ClickUp ticket
  • Tested locally (MANDATORY)
  • Marked as Draft if not ready for review

- Updated the toastWithIcon function to utilize nullish coalescing for the default timeout value, ensuring that the default of 5000ms is applied only when no timeout is provided.
- Simplified the progress bar transition duration by referencing the newly defined toastTimeout variable.

@Salman-Ahamed Salman-Ahamed left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

reviewed

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.

1 participant