Skip to content

Commit

Permalink
fix(whiteboard) fix disabling button
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Dec 10, 2024
1 parent f85d0e6 commit e8cb439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/features/whiteboard/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const hasCollabDetails = (state: IReduxState): boolean => Boolean(
* @returns {boolean}
*/
export const isWhiteboardEnabled = (state: IReduxState): boolean =>
(getWhiteboardConfig(state).enabled || hasCollabDetails(state))
(getWhiteboardConfig(state).enabled ?? hasCollabDetails(state))
&& getWhiteboardConfig(state).collabServerBaseUrl
&& getCurrentConference(state)?.getMetadataHandler()
?.isSupported();
Expand Down

0 comments on commit e8cb439

Please sign in to comment.