Files
bookhoard/templates/toast.templ
T
john-okeefe 5bdddc6538 fix(templates): fix ErrorToast rendering literal { message } instead of error text
ErrorToast used Go string literal '{ message }' instead of templ
interpolation, so the actual error message was never shown — just the
literal text "{ message }" appeared in the toast.
2026-05-10 16:13:21 -04:00

8 lines
160 B
Templ

package templates
templ ErrorToast(message string) {
if message != "" {
<div x-data="toastError" x-init={ "showErrorToast('" + message + "')" }></div>
}
}