1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

slight tweak

This commit is contained in:
Matthias Kretschmann 2020-07-15 21:25:24 +02:00
parent e31add9d21
commit 89ec464551
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -16,7 +16,7 @@ export default function Details({ attrs }: { attrs: any }): ReactElement {
if (!ocean) return
const accounts = await ocean.accounts.list()
const newBalanceOcean = await ocean.accounts.getOceanBalance(accounts[0])
const newBalanceOcean = await accounts[0].getOceanBalance()
newBalanceOcean && setBalanceOcean(newBalanceOcean)
}
init()