From 72ae8a7ba7111adde4e84e0a3ba3751c2a2c1b7a Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 18 Sep 2024 19:08:49 -0500 Subject: [PATCH] Nits --- src/components/dialogs/nuxs/index.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/dialogs/nuxs/index.tsx b/src/components/dialogs/nuxs/index.tsx index e826895cba..b93831ad35 100644 --- a/src/components/dialogs/nuxs/index.tsx +++ b/src/components/dialogs/nuxs/index.tsx @@ -69,13 +69,13 @@ export function NuxDialogs() { const isLoading = !currentAccount || !preferences || !profile || onboardingActive - return isLoading ? null : ( + return !isLoading ? ( - ) + ) : 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`)