From 8038701a6a308429c4f3752feb48ba50dc15ec41 Mon Sep 17 00:00:00 2001 From: man0s <95379755+losman0s@users.noreply.github.com> Date: Tue, 19 Sep 2023 22:52:28 +0800 Subject: [PATCH] fix(mfi-v2-ui): empty wallet hides positions --- packages/marginfi-v2-ui-state/src/store/mrgnlendStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/marginfi-v2-ui-state/src/store/mrgnlendStore.ts b/packages/marginfi-v2-ui-state/src/store/mrgnlendStore.ts index 9742ce82c0..4e0dfb78d5 100644 --- a/packages/marginfi-v2-ui-state/src/store/mrgnlendStore.ts +++ b/packages/marginfi-v2-ui-state/src/store/mrgnlendStore.ts @@ -164,7 +164,7 @@ const stateCreator: StateCreator = (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 = {