summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/src/utils.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/src/utils.ts b/ui/src/utils.ts
index cab1fd5b..48bd175e 100644
--- a/ui/src/utils.ts
+++ b/ui/src/utils.ts
@@ -444,7 +444,8 @@ export function messageToastify(
router: any
) {
let backgroundColor = `var(--light)`;
- Toastify({
+
+ let toast = Toastify({
text: `${body}<br />${creator}`,
avatar: avatar,
backgroundColor: backgroundColor,
@@ -453,7 +454,10 @@ export function messageToastify(
position: 'right',
duration: 0,
onClick: () => {
- router.history.push(link);
+ if (toast) {
+ toast.hideToast();
+ router.history.push(link);
+ }
},
}).showToast();
}