fix when creating new mango accoung

This commit is contained in:
Tyler Shipe 2021-08-17 16:09:27 -04:00
parent dd074685e3
commit 5c44d1fd34
2 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,7 @@ import Slider from './Slider'
import Tooltip from './Tooltip'
import { notify } from '../utils/notifications'
import { deposit } from '../utils/mango'
import { PublicKey } from '@solana/web3.js'
interface NewAccountProps {
onAccountCreation?: (x?) => void
@ -70,6 +71,8 @@ const NewAccount: FunctionComponent<NewAccountProps> = ({
actions.fetchWalletTokens()
actions.fetchMangoAccounts()
setSubmitting(false)
console.log('response', response)
onAccountCreation(response)
})
.catch((err) => {

View File

@ -995,7 +995,7 @@
"@blockworks-foundation/mango-client@git+https://github.com/blockworks-foundation/mango-client-v3.git":
version "3.0.4"
resolved "git+https://github.com/blockworks-foundation/mango-client-v3.git#e25f4f19f8fa5fcfdfe548961d9c5877e35a493e"
resolved "git+https://github.com/blockworks-foundation/mango-client-v3.git#08f24c0ac8f68b3acc4252ae1c4c5555c95fa795"
dependencies:
"@project-serum/serum" "0.13.55"
"@project-serum/sol-wallet-adapter" "^0.2.0"