You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The if statement to check if postcode and house_number are filled in appears to be faulty.
I get the following error in vendor/tig/postcode-magento2/view/base/web/js/postcode-handler/postcode-nl.js
jQuery.Deferred exception: this.data.house_number.match(...) is null
The if statement determines if the postcode and house_number are a string, but the string could still be empty.
When running the following regex expression, the result of match would be null so you get an error when selecting the first element in the array.
this.data.house_number.match(/^\d+/)[0])
Screenshots
Magento version: 2.4.5-p9
PHP version: [8.1]
The text was updated successfully, but these errors were encountered:
The if statement to check if postcode and house_number are filled in appears to be faulty.
I get the following error in vendor/tig/postcode-magento2/view/base/web/js/postcode-handler/postcode-nl.js
jQuery.Deferred exception: this.data.house_number.match(...) is null
The if statement determines if the postcode and house_number are a string, but the string could still be empty.
When running the following regex expression, the result of match would be null so you get an error when selecting the first element in the array.
this.data.house_number.match(/^\d+/)[0])
Screenshots
The text was updated successfully, but these errors were encountered: