From f131b803eb33a9365254bb601a8b96e07411aa20 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Thu, 14 Nov 2024 17:31:20 +0000 Subject: [PATCH] fix type --- src/tile/GridTile.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tile/GridTile.tsx b/src/tile/GridTile.tsx index 6a7de733..27695b65 100644 --- a/src/tile/GridTile.tsx +++ b/src/tile/GridTile.tsx @@ -97,7 +97,7 @@ const UserMediaTile = forwardRef( }, [vm], ); - const { raisedHands, lowerHand, reactions } = useReactions(); + const { raisedHands, toggleRaisedHand, reactions } = useReactions(); const AudioIcon = locallyMuted ? VolumeOffSolidIcon @@ -127,8 +127,9 @@ const UserMediaTile = forwardRef( const handRaised: Date | undefined = raisedHands[vm.member?.userId ?? ""]; const currentReaction: ReactionOption | undefined = reactions[vm.member?.userId ?? ""]; - const raisedHandOnClick = - vm.local && handRaised ? (): void => void lowerHand() : undefined; + const raisedHandOnClick = vm.local + ? (): void => void toggleRaisedHand() + : undefined; const showSpeaking = showSpeakingIndicators && speaking;