Prevent confirming blank suggested token (#8909)

The "confirm suggested token" page allowed the confirm button to be
pressed even when there were no tokens to confirm. This can happen
sometimes when the page is in the process of redirecting.
feature/default_network_editable
Mark Stacey 4 years ago committed by GitHub
parent 4a989c339a
commit a4e7cff36e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ui/app/pages/confirm-add-suggested-token/confirm-add-suggested-token.component.js

@ -122,6 +122,7 @@ export default class ConfirmAddSuggestedToken extends Component {
type="secondary"
large
className="page-container__footer-button"
disabled={pendingTokens.length === 0}
onClick={() => {
addToken(pendingToken)
.then(() => removeSuggestedTokens())

Loading…
Cancel
Save