Skip to content

Commit

Permalink
Trim all the things.
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyc committed Oct 12, 2017
1 parent b774f2d commit 097f79b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class ProductVariationTypesForm extends Component {
const existingAttribute =
product.attributes &&
find( product.attributes, function( a ) {
return a.uid !== attributeId && a.name.toLowerCase() === name.toLowerCase();
return a.uid !== attributeId && a.name.trim().toLowerCase() === name.trim().toLowerCase();
} );

if ( existingAttribute ) {
Expand Down

0 comments on commit 097f79b

Please sign in to comment.