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 f2f8fab commit e9e60d1
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

0 comments on commit e9e60d1

Please sign in to comment.