Skip to content

Commit

Permalink
add condition to startup check
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntVal committed Mar 19, 2024
1 parent b6f4bdb commit 3e824f3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ export const AbstraxionWallets = () => {
useEffect(() => {
async function onStartup() {
if (!loading && data && !previousData && !isGeneratingNewWallet) {
if (data?.smartAccounts?.nodes.length === 0) {
if (
data?.smartAccounts?.nodes.length === 0 &&
connectionType === "stytch"
) {
await handleJwtAALoginOrCreate();
}
}
Expand Down

0 comments on commit 3e824f3

Please sign in to comment.