From d7a11f8aaf9e76b8890fbcc74b1d628d276fc0e2 Mon Sep 17 00:00:00 2001 From: Yauheni Date: Thu, 27 Jul 2023 22:33:01 +0300 Subject: [PATCH] Disables alerts in messages --- frontend/src/features/Game/hooks.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/features/Game/hooks.ts b/frontend/src/features/Game/hooks.ts index 40bc186..08467c7 100644 --- a/frontend/src/features/Game/hooks.ts +++ b/frontend/src/features/Game/hooks.ts @@ -15,13 +15,17 @@ function useCreateStreamMetadata() { function usePlayerMoveMessage() { const meta = useCreateStreamMetadata(); - return useSendMessage(ADDRESS.CONTRACT, meta); + return useSendMessage(ADDRESS.CONTRACT, meta, { + disableAlerts: true, + }); } function useStartGameMessage() { const meta = useCreateStreamMetadata(); - const message = useSendMessage(ADDRESS.CONTRACT, meta); + const message = useSendMessage(ADDRESS.CONTRACT, meta, { + disableAlerts: true, + }); return { meta, message }; }