From bfd2b7dafb473ba5c625d22c13e3121b46a2d73b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Fri, 17 May 2024 09:54:13 +0200 Subject: [PATCH] Update src/context/Global.tsx Co-authored-by: michael1011 --- src/context/Global.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/Global.tsx b/src/context/Global.tsx index b710c899..62b4a428 100644 --- a/src/context/Global.tsx +++ b/src/context/Global.tsx @@ -171,7 +171,7 @@ const GlobalProvider = (props: { children: any }) => { }, ); - const notify = (type: string, message: string, audio?: boolean) => { + const notify = (type: string, message: string, audio: boolean = false) => { setNotificationType(type); setNotification(message); if (audio && audioNotification()) playNotificationSound();