This commit is contained in:
Eric Bailey
2024-09-18 19:08:49 -05:00
parent e18b9ae544
commit 72ae8a7ba7
+7 -4
View File
@@ -69,13 +69,13 @@ export function NuxDialogs() {
const isLoading =
!currentAccount || !preferences || !profile || onboardingActive
return isLoading ? null : (
return !isLoading ? (
<Inner
currentAccount={currentAccount}
currentProfile={profile}
preferences={preferences}
/>
)
) : null
}
function Inner({
@@ -123,14 +123,17 @@ function Inner({
const nux = nuxs.find(nux => nux.id === id)
// check if completed first
if (nux && nux.completed) continue
if (nux && nux.completed) {
continue
}
// then check gate (track exposure)
if (
enabled &&
!enabled({gate, currentAccount, currentProfile, preferences})
)
) {
continue
}
logger.debug(`NUX dialogs: activating '${id}' NUX`)