diff --git a/src/gui/html/js/dialog.js b/src/gui/html/js/dialog.js
index 0115910e..630747ba 100644
--- a/src/gui/html/js/dialog.js
+++ b/src/gui/html/js/dialog.js
@@ -44,8 +44,10 @@
static showNotification(text) {
const toast = document.getElementById('toast');
- toast.text = text;
- toast.show();
+ if (toast.opened) {
+ toast.hide();
+ }
+ toast.show(text);
}
};
}));