(notification) stop spamming on start and resume

This commit is contained in:
2020-07-11 10:15:08 +02:00
parent b022c0eda6
commit 32e4014db5

View File

@@ -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 !`
})
}