Skip to content

Commit

Permalink
Do not use ignore case when renaming attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
toupper committed Sep 13, 2024
1 parent 9acb6ce commit 00401b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,7 @@ class ProductDetailViewModel @Inject constructor(
fun renameAttributeInDraft(attributeId: Long, oldAttributeName: String, newAttributeName: String): Boolean {
// first make sure an attribute with the new name doesn't already exist in the draft
productDraftAttributes.forEach {
if (it.name.equals(newAttributeName, ignoreCase = true)) {
if (it.name.equals(newAttributeName)) {
triggerEvent(ShowSnackbar(R.string.product_attribute_name_already_exists))
return false
}
Expand Down

0 comments on commit 00401b5

Please sign in to comment.