Refresh token balance after token send

This commit is contained in:
nicocappabianca
2020-10-08 21:14:09 -03:00
parent 330b4ddf24
commit e852b992ab
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -163,8 +163,8 @@ class Tokens extends React.Component {
}
// Wrapper for handleGetTokens()
async onHandleGetTokens () {
return _this.handleGetTokens()
async onHandleGetTokens (refresh = null) {
return _this.handleGetTokens(refresh)
}
async componentDidMount () {
@@ -198,9 +198,10 @@ class SendTokens extends React.Component {
})
_this.resetValues()
setTimeout(() => {
_this.props.handleSend()
}, 1000)
_this.props.handleSend(true)
}, 3000)
} catch (error) {
_this.handleError(error)
}