|
|
@ -33,7 +33,7 @@ export default class ConfirmAddSuggestedToken extends Component { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
render () { |
|
|
|
render () { |
|
|
|
const { addToken, clearPendingTokens, pendingTokens, removeSuggestedTokens } = this.props |
|
|
|
const { addToken, clearPendingTokens, pendingTokens, removeSuggestedTokens, history } = this.props |
|
|
|
const pendingTokenKey = Object.keys(pendingTokens)[0] |
|
|
|
const pendingTokenKey = Object.keys(pendingTokens)[0] |
|
|
|
const pendingToken = pendingTokens[pendingTokenKey] |
|
|
|
const pendingToken = pendingTokens[pendingTokenKey] |
|
|
|
|
|
|
|
|
|
|
@ -96,6 +96,7 @@ export default class ConfirmAddSuggestedToken extends Component { |
|
|
|
className="page-container__footer-button" |
|
|
|
className="page-container__footer-button" |
|
|
|
onClick={() => { |
|
|
|
onClick={() => { |
|
|
|
removeSuggestedTokens() |
|
|
|
removeSuggestedTokens() |
|
|
|
|
|
|
|
history.push(DEFAULT_ROUTE) |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
{ this.context.t('cancel') } |
|
|
|
{ this.context.t('cancel') } |
|
|
@ -107,8 +108,8 @@ export default class ConfirmAddSuggestedToken extends Component { |
|
|
|
onClick={() => { |
|
|
|
onClick={() => { |
|
|
|
addToken(pendingToken) |
|
|
|
addToken(pendingToken) |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
clearPendingTokens() |
|
|
|
|
|
|
|
removeSuggestedTokens() |
|
|
|
removeSuggestedTokens() |
|
|
|
|
|
|
|
history.push(DEFAULT_ROUTE) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|