Skip to content

Commit

Permalink
fix(mfi-v2-ui): empty wallet hides positions
Browse files Browse the repository at this point in the history
  • Loading branch information
losman0s committed Sep 19, 2023
1 parent 84d257b commit 8038701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/marginfi-v2-ui-state/src/store/mrgnlendStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const stateCreator: StateCreator<MrgnlendState, [], []> = (set, get) => ({
const emissionTokenPriceData = priceMap[bank.emissionsMint.toBase58()];

let userData;
if (wallet?.publicKey && nativeSolBalance) {
if (wallet?.publicKey) {
const tokenAccount = tokenAccountMap!.get(bank.mint.toBase58());
if (!tokenAccount) throw new Error(`Token account not found for ${bank.mint.toBase58()}`);
userData = {
Expand Down

2 comments on commit 8038701

@vercel
Copy link

@vercel vercel bot commented on 8038701 Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

omni – ./apps/omni

omni-mrgn.vercel.app
omni-one.vercel.app
omni-git-production-mrgn.vercel.app
omni.marginfi.com

@vercel
Copy link

@vercel vercel bot commented on 8038701 Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.