Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
#86672 fix validation condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ofrankowska committed Feb 28, 2022
1 parent 1403428 commit 4ebdaed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Amasty_GiftCard/web/js/giftcard-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ define(['jquery'], function ($) {
},
validateForm: function (event) {
var textareaValue = $(this.element.textarea).val();
var isValidTextarea = textareaValue ? textareaValue.length < this.maxLength : true;
var isValidTextarea = textareaValue ? textareaValue.length <= this.maxLength : true;

if ($('#product_addtocart_form').validate().form() && isValidTextarea) {
return;
Expand Down

0 comments on commit 4ebdaed

Please sign in to comment.