mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
change undefined with 0 as value to fix new Decimal error (#1089)
* change undefined with 0 as value to fix new Decimal error * correction for fix changed undefined value with 0 as value to fix new Decimal error
This commit is contained in:
parent
5da468c831
commit
b6dc52c0ab
@ -197,7 +197,7 @@ function PoolProvider({ children }: { children: ReactNode }): ReactElement {
|
|||||||
|
|
||||||
// Staking bot receives half the pool shares so for display purposes
|
// Staking bot receives half the pool shares so for display purposes
|
||||||
// we can multiply by 2 as we have a hardcoded 50/50 pool weight.
|
// we can multiply by 2 as we have a hardcoded 50/50 pool weight.
|
||||||
const userPoolShares = new Decimal(poolInfoUser.poolShares)
|
const userPoolShares = new Decimal(poolInfoUser.poolShares || 0)
|
||||||
.mul(2)
|
.mul(2)
|
||||||
.toString()
|
.toString()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user