|
@@ -18,7 +18,7 @@ const Detail:React.FC<DetailProps> = (props) => {
|
|
|
const i = new BigNumber(type === ContractType.INCOME ? contract.returned : contract.paid).dividedBy(contract.price)
|
|
|
const j = new BigNumber(1).minus(i)
|
|
|
const k = new BigNumber(contract.price).minus(type === ContractType.INCOME ? contract.returned : contract.paid)
|
|
|
- return { returned: i.multipliedBy(100).toFixed(2) + '%', unReturned: j.multipliedBy(100).toFixed(2) + '%', unReturnedMoney: k }
|
|
|
+ return { returned: parseFloat(i.multipliedBy(100).toFixed(2)) + '%', unReturned: parseFloat(j.multipliedBy(100).toFixed(2)) + '%', unReturnedMoney: k }
|
|
|
}, [ contract ])
|
|
|
return contract.id ? (
|
|
|
<div className={styles.detailTab}>
|