fix: isNaN Leverage
This commit is contained in:
parent
df7ef30a43
commit
89d41fa5cf
@ -89,7 +89,7 @@ export default function PortfolioSummary() {
|
||||
title: (
|
||||
<FormattedNumber
|
||||
className='text-xl'
|
||||
amount={leverage.toNumber()}
|
||||
amount={isNaN(leverage.toNumber()) ? 1 : leverage.toNumber()}
|
||||
options={{ suffix: 'x' }}
|
||||
/>
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user