Skip to content

Commit

Permalink
Prevent confirming blank suggested token (#8909)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Gudahtt authored Jul 3, 2020
1 parent 4a989c3 commit a4e7cff
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit a4e7cff

Please sign in to comment.