ps-toolkit-ui 0.1.77 → 0.1.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3314,7 +3314,7 @@
3314
3314
  FormBankCardComponent.prototype.setIcon = function () {
3315
3315
  var _this = this;
3316
3316
  console.log(this.part1.data().toString() + this.part2.data().toString());
3317
- var b = this.banks.filter(function (x) { return x.startWith.includes(_this.part1.data().toString() + _this.part2.data().toString()); });
3317
+ var b = this.banks.filter(function (x) { return x.startWith.includes(_this.part1.data().toString() + _this.part2.data().toString().substring(0, 2)); });
3318
3318
  if (b.length > 0) {
3319
3319
  $__namespace(this.inputIcon.nativeElement).removeClass('fa-money-check').addClass(b[0].name);
3320
3320
  }