Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Robeartt committed May 2, 2024
1 parent 53579e3 commit 5f4a48b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 2,973 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@
"prettier": "^2.7.1",
"tslib": "^2.5.0",
"typescript": "4.7.4"
}
},
"packageManager": "^npm@9.5.0"
}
2 changes: 1 addition & 1 deletion src/components/backstop/BackstopDepositAnvil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const BackstopDepositAnvil: React.FC<PoolComponentProps> = ({ poolId }) =
Gas
</>
}
value={`${toBalance(BigInt((simResponse as any)?.minResourceFee), decimals)} XLM`}
value={`${simResponse && (simResponse as any).minResourceFee !== undefined ? toBalance(BigInt((simResponse as any).minResourceFee), decimals) : '0'} XLM`}
/>
<ValueChange
title="Your total deposit"
Expand Down
2 changes: 1 addition & 1 deletion src/components/backstop/BackstopMintAnvil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export const BackstopMintAnvil: React.FC<{
Gas
</>
}
value={`${toBalance(BigInt((simResponse as any)?.minResourceFee), decimals)} XLM`}
value={`${simResponse && (simResponse as any).minResourceFee !== undefined ? toBalance(BigInt((simResponse as any).minResourceFee), decimals) : '0'} XLM`}
/>
<ValueChange
title="Your total mint"
Expand Down
2 changes: 1 addition & 1 deletion src/components/backstop/BackstopQueueAnvil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const BackstopQueueAnvil: React.FC<PoolComponentProps> = ({ poolId }) =>
Gas
</>
}
value={`${toBalance(BigInt((simResponse as any)?.minResourceFee), decimals)} XLM`}
value={`${simResponse && (simResponse as any).minResourceFee !== undefined ? toBalance(BigInt((simResponse as any).minResourceFee), decimals) : '0'} XLM`}
/>
<Value
title="New queue expiration"
Expand Down
2 changes: 1 addition & 1 deletion src/components/borrow/BorrowAnvil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export const BorrowAnvil: React.FC<ReserveComponentProps> = ({ poolId, assetId }
Gas
</>
}
value={`${toBalance(BigInt((simResponse as any)?.minResourceFee), decimals)} XLM`}
value={`${simResponse && (simResponse as any).minResourceFee !== undefined ? toBalance(BigInt((simResponse as any).minResourceFee), decimals) : '0'} XLM`}
/>
<ValueChange
title="Your total borrowed"
Expand Down
2 changes: 1 addition & 1 deletion src/components/lend/LendAnvil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const LendAnvil: React.FC<ReserveComponentProps> = ({ poolId, assetId })
Gas
</>
}
value={`${toBalance(BigInt((simResponse as any)?.minResourceFee), decimals)} XLM`}
value={`${simResponse && (simResponse as any).minResourceFee !== undefined ? toBalance(BigInt((simResponse as any).minResourceFee), decimals) : '0'} XLM`}
/>
<ValueChange
title="Your total supplied"
Expand Down
2 changes: 1 addition & 1 deletion src/components/repay/RepayAnvil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export const RepayAnvil: React.FC<ReserveComponentProps> = ({ poolId, assetId })
Gas
</>
}
value={`${toBalance(BigInt((simResponse as any)?.minResourceFee), decimals)} XLM`}
value={`${simResponse && (simResponse as any).minResourceFee !== undefined ? toBalance(BigInt((simResponse as any).minResourceFee), decimals) : '0'} XLM`}
/>
<ValueChange
title="Your total borrowed"
Expand Down
2 changes: 1 addition & 1 deletion src/components/withdraw/WithdrawAnvil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export const WithdrawAnvil: React.FC<ReserveComponentProps> = ({ poolId, assetId
Gas
</>
}
value={`${toBalance(BigInt((simResponse as any)?.minResourceFee), decimals)} XLM`}
value={`${simResponse && (simResponse as any).minResourceFee !== undefined ? toBalance(BigInt((simResponse as any).minResourceFee), decimals) : '0'} XLM`}
/>
<ValueChange
title="Your total supplied"
Expand Down
Loading

0 comments on commit 5f4a48b

Please sign in to comment.