Skip to content

Commit

Permalink
fix: correctly report live state of the call (#940)
Browse files Browse the repository at this point in the history
Fixes a regression introduced with #931
  • Loading branch information
oliverlaz authored Aug 16, 2023
1 parent 6f864be commit 75f36e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-bindings/src/hooks/callStateHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export const useIsCallBroadcastingInProgress = (): boolean => {
*/
export const useIsCallLive = (): boolean => {
const { backstage$ } = useCallState();
return useObservableValue(backstage$);
const isBackstageOn = useObservableValue(backstage$);
return !isBackstageOn;
};

/**
Expand Down

0 comments on commit 75f36e1

Please sign in to comment.