Skip to content

Commit 456548a

Browse files
committed
fix: hide children during login / second layer
When second layer is show, or contentpass login popup is open, we should not show the App's children.
1 parent 244c3b0 commit 456548a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native-contentpass-ui/src/components/ContentpassConsentGate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export default function ContentpassConsentGate({
148148
onVisibilityChange,
149149
]);
150150

151-
if (!consentResolved) {
151+
if (!consentResolved || isShowingContentpass || isShowingSecondLayer) {
152152
return (
153153
<View style={styles.loading}>
154154
<ActivityIndicator size="large" />

0 commit comments

Comments
 (0)