fix: isNaN Leverage

This commit is contained in:
Linkie Link 2024-02-19 12:38:04 +01:00
parent df7ef30a43
commit 89d41fa5cf
No known key found for this signature in database
GPG Key ID: 5318B0F2564D38EA

View File

@ -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' }}
/>
),