Check if user exists before loading the form (#5108)
This commit is contained in:
parent
c00cce0b12
commit
a2e3496c8e
|
|
@ -19,7 +19,7 @@ function OnboardingForm() {
|
||||||
const status = useScript(`https://embed.typeform.com/embed.js`);
|
const status = useScript(`https://embed.typeform.com/embed.js`);
|
||||||
const currentUser = useSelector(getCurrentUser);
|
const currentUser = useSelector(getCurrentUser);
|
||||||
|
|
||||||
if (status !== ScriptStatus.READY) return null;
|
if (status !== ScriptStatus.READY || !currentUser) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TypeformContainer>
|
<TypeformContainer>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user