Skip to content

Commit

Permalink
fix: error wih default brand or null (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiano-mallmann authored Sep 5, 2023
1 parent a40a05a commit 00fb289
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -770,10 +770,9 @@ define([
PlatformConfig.PlatformConfig.avaliableBrands[formObject.savedCardSelectUsed].forEach(function (item) {
brands.push(item.title.toUpperCase());
});

if (
!brands.includes(element.val().toUpperCase())
|| element.val === ''
&& element.val() != 'default'
) {
requiredElement.addClass(errorClass);
requiredElementError.show();
Expand Down

0 comments on commit 00fb289

Please sign in to comment.