fix(pre-join): Remove from dom when lobby is shown.

This commit is contained in:
damencho
2025-01-22 17:36:36 -06:00
committed by Дамян Минков
parent d67054a550
commit 09b696e95a

View File

@@ -118,8 +118,8 @@ interface IProps extends AbstractProps, WithTranslation {
* @param {IProps} props - The props object.
* @returns {boolean} - True if the prejoin screen should be displayed and false otherwise.
*/
function shouldShowPrejoin({ _showPrejoin, _showVisitorsQueue }: IProps) {
return _showPrejoin && !_showVisitorsQueue;
function shouldShowPrejoin({ _showLobby, _showPrejoin, _showVisitorsQueue }: IProps) {
return _showPrejoin && !_showVisitorsQueue && !_showLobby;
}
/**