summaryrefslogtreecommitdiff
path: root/frontend/src/components/DeckyToaster.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/DeckyToaster.tsx')
-rw-r--r--frontend/src/components/DeckyToaster.tsx13
1 files changed, 8 insertions, 5 deletions
diff --git a/frontend/src/components/DeckyToaster.tsx b/frontend/src/components/DeckyToaster.tsx
index eaee75eb..6faece09 100644
--- a/frontend/src/components/DeckyToaster.tsx
+++ b/frontend/src/components/DeckyToaster.tsx
@@ -30,11 +30,14 @@ const DeckyToaster: FC<DeckyToasterProps> = () => {
// not actually node but TS is shit
let interval: NodeJS.Timer | null;
if (renderedToast) {
- interval = setTimeout(() => {
- interval = null;
- console.log('clear toast', renderedToast.data);
- removeToast(renderedToast.data);
- }, (renderedToast.data.duration || 5e3) + 1000);
+ interval = setTimeout(
+ () => {
+ interval = null;
+ console.log('clear toast', renderedToast.data);
+ removeToast(renderedToast.data);
+ },
+ (renderedToast.data.duration || 5e3) + 1000,
+ );
console.log('set int', interval);
}
return () => {