Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Disables alerts in messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Yauheni committed Jul 27, 2023
1 parent f75c6a9 commit d7a11f8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/src/features/Game/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}
Expand Down

0 comments on commit d7a11f8

Please sign in to comment.