Skip to content

Commit

Permalink
Domains: Fix an availability precheck regression (#35789)
Browse files Browse the repository at this point in the history
It seems that we've introduced a regression in the availabilty precheck code when we introduced TMCH. This should fix the issue - if a domain is not available we should not add it to the cart.

see: p99Zz8-Jf-p2
  • Loading branch information
hambai authored Aug 27, 2019
1 parent 9dcf0f0 commit 053e45e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/components/domains/register-domain-step/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1114,9 +1114,7 @@ class RegisterDomainStep extends React.Component {
this.showAvailabilityErrorMessage( domain, status, {
availabilityPreCheck: true,
} );
}

if ( trademarkClaimsNoticeInfo ) {
} else if ( trademarkClaimsNoticeInfo ) {
this.setState( {
trademarkClaimsNoticeInfo: trademarkClaimsNoticeInfo,
selectedSuggestion: suggestion,
Expand Down

0 comments on commit 053e45e

Please sign in to comment.