Fix passworldess user prompt screen

This is how boolean logic works
This commit is contained in:
David Baker 2022-09-23 15:38:35 +01:00
parent 7435f1101a
commit ded6a80b58

View file

@ -139,10 +139,10 @@ export function GroupCallView({
widget.api.setAlwaysOnScreen(false); widget.api.setAlwaysOnScreen(false);
} }
if (!isEmbedded) { if (!isPasswordlessUser && !isEmbedded) {
history.push("/"); history.push("/");
} }
}, [leave, isEmbedded, history]); }, [leave, isPasswordlessUser, isEmbedded, history]);
useEffect(() => { useEffect(() => {
if (widget && state === GroupCallState.Entered) { if (widget && state === GroupCallState.Entered) {