diff --git a/app/stores/UiStore.js b/app/stores/UiStore.js index 01f9bf4ab..de704082e 100644 --- a/app/stores/UiStore.js +++ b/app/stores/UiStore.js @@ -88,6 +88,8 @@ class UiStore { message: string, type?: 'warning' | 'error' | 'info' | 'success' = 'success' ) => { + if (!message) return; + const id = v4(); const createdAt = new Date().toISOString(); this.toasts.set(id, { message, type, createdAt, id });