Skip to content

Commit

Permalink
No longer auto-select first account in dashboard after login
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbarry committed Apr 11, 2024
1 parent 31e6703 commit c7bbbeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-mice-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"abstraxion-dashboard": minor
---

No longer auto select first account after first login
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ export const AbstraxionWallets = () => {
if (previousData && data !== previousData) {
stopPolling();
setFetchingNewWallets(false);
setAbstractAccount(
data?.smartAccounts?.nodes[data?.smartAccounts?.nodes.length - 1], // set to most recently created account to handle cases where smartAccounts !== 1
);
}
}, [data, previousData]);

Expand Down

0 comments on commit c7bbbeb

Please sign in to comment.