Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(whiteboard) fix disabling button

Saúl Ibarra Corretgéeee58b294538
diff --git a/react/features/whiteboard/functions.ts b/react/features/whiteboard/functions.ts
index 16d34845ce..97dcf3bb52 100644
--- a/react/features/whiteboard/functions.ts
+++ b/react/features/whiteboard/functions.ts
@@ -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();