Skip to content

Commit

Permalink
fix portfolio undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhochu committed Dec 28, 2023
1 parent 23dc0c9 commit 6f85cfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transformers/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export const transformPortfolio = (account) => {
borrows,
collaterals,
supplied: listToMap(supplied),
borrowed: positions[DEFAULT_POSITION]?.borrowed,
collateral: positions[DEFAULT_POSITION]?.collateral,
borrowed: positions[DEFAULT_POSITION]?.borrowed || {},
collateral: positions[DEFAULT_POSITION]?.collateral || {},
collateralAll,
positions,
farms: transformAccountFarms(farms),
Expand Down

0 comments on commit 6f85cfb

Please sign in to comment.