From 32e4014db53859d2a0f5fa01a71b2bde83f5950e Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sat, 11 Jul 2020 10:15:08 +0200 Subject: [PATCH] :sparkles: (notification) stop spamming on start and resume --- src/hooks/useTimer.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hooks/useTimer.ts b/src/hooks/useTimer.ts index d70078b..273ea27 100644 --- a/src/hooks/useTimer.ts +++ b/src/hooks/useTimer.ts @@ -33,7 +33,6 @@ export const useTimer = () => { const start = () => { timeState.value = 'started' - notify(seconds.value ? 'La session reprend !' : 'La session commence !') stopwatchId = setInterval(() => { seconds.value++ @@ -43,7 +42,7 @@ export const useTimer = () => { const dev = isProgrammer1Turn.value ? 'Dev 1' : 'Dev 2' - notify('Changement de joueur !', { + notify('Changement !', { body: `${dev}, à votre tour !` }) }