fix(toast): rename Nuxt UI 4 toast.add timeout → duration
Some checks failed
Test / vitest (push) Successful in 11m3s
Test / playwright (push) Failing after 9m29s
Test / visual (push) Failing after 9m26s
Test / Notify on failure (push) Successful in 3s

Nuxt UI 4's Toast component reads `duration` (default 5000ms), not
`timeout` — the property was silently ignored. Behavior unchanged
since 5000ms matched the default. Fix the call site to be honest.

Strike the now-resolved gotcha from LAUNCH_READINESS.md.
This commit is contained in:
Jennie Robinson Faber 2026-04-27 19:50:38 +01:00
parent cf59931814
commit be24ae32fb
2 changed files with 2 additions and 3 deletions

View file

@ -308,7 +308,7 @@ const handleSubmit = async () => {
title: "Series Pass Purchased!",
description: `You're now registered for all ${purchaseResponse.registration.eventsRegistered} events in this series.`,
color: "green",
timeout: 5000,
duration: 5000,
});
// Emit success event
@ -328,7 +328,7 @@ const handleSubmit = async () => {
title: "Purchase Failed",
description: errorMessage,
color: "red",
timeout: 5000,
duration: 5000,
});
emit("purchase-error", errorMessage);