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