diff --git a/frontend/app/modules/toast/Toast.tsx b/frontend/app/modules/toast/Toast.tsx
index 37c5f29..c4d4b8a 100644
--- a/frontend/app/modules/toast/Toast.tsx
+++ b/frontend/app/modules/toast/Toast.tsx
@@ -34,7 +34,7 @@ const Toast: FC = () => {
<>
-
+ {!!store.lastText && }
>
)
}
diff --git a/frontend/app/modules/toast/toast.store.ts b/frontend/app/modules/toast/toast.store.ts
index b32115a..3838f1f 100644
--- a/frontend/app/modules/toast/toast.store.ts
+++ b/frontend/app/modules/toast/toast.store.ts
@@ -15,6 +15,10 @@ export class ToastStore {
this.lastText = ''
}
+ private onClose() {
+ this.lastText = ''
+ }
+
setTheme(isDarkTheme: boolean) {
this.isDarkTheme = isDarkTheme
}
@@ -26,6 +30,7 @@ export class ToastStore {
theme: this.isDarkTheme ? 'dark' : 'light',
position: 'bottom-left' as ToastPosition,
autoClose: timeout,
+ onClose: this.onClose.bind(this),
}
toast.info(text, toastOptions)
diff --git a/frontend/package.json b/frontend/package.json
index dc236d7..ae87a8c 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,6 +1,6 @@
{
"name": "next-feature-smartapp",
- "version": "2.4.2",
+ "version": "2.4.3",
"description": "SmartApp with all features",
"main": "index.js",
"scripts": {