mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
slight tweak
This commit is contained in:
parent
e31add9d21
commit
89ec464551
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user