fix type errors
This commit is contained in:
parent
fc836218d5
commit
90e166ddcc
|
@ -17,9 +17,10 @@ const AccountActions = () => {
|
|||
const handleCloseMangoAccount = async () => {
|
||||
const client = mangoStore.getState().client
|
||||
const mangoAccount = mangoStore.getState().mangoAccount
|
||||
if (!mangoAccount) return
|
||||
const group = mangoStore.getState().group
|
||||
if (!mangoAccount || !group) return
|
||||
try {
|
||||
const tx = await client.closeMangoAccount(mangoAccount)
|
||||
const tx = await client.closeMangoAccount(group, mangoAccount)
|
||||
console.log('success:', tx)
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
|
|
|
@ -64,11 +64,11 @@ const Index: NextPage = () => {
|
|||
</div>
|
||||
<div>
|
||||
Indexed Total Deposits:{' '}
|
||||
{bank.value.indexedTotalDeposits.toString()}
|
||||
{bank.value.cachedIndexedTotalDeposits.toString()}
|
||||
</div>
|
||||
<div>
|
||||
Indexed Total Borrows:{' '}
|
||||
{bank.value.indexedTotalDeposits.toString()}
|
||||
{bank.value.cachedIndexedTotalBorrows.toString()}
|
||||
</div>
|
||||
<div>Mint Decimals: {bank.value.mintDecimals.toString()}</div>
|
||||
<div>Deposit Index: {bank.value.depositIndex.toString()}</div>
|
||||
|
|
Loading…
Reference in New Issue