postnl / postnl-magento2

This is the official Magento 2 extension for the logistics company PostNL. Add shipping options and parcelshops to your checkout. Create labels with track and trace functionality from the backend.
58 stars 61 forks source link

Avoid js error in addressbook when housenumber or addition are empty #372

Closed brenbl closed 3 months ago

brenbl commented 10 months ago

In rare cases the housenumber field can be empty. For housenumber addition it is normal to be empty. This breaks the postcode validation.

This fixes the error on the customer account addressbook page: Uncaught SyntaxError: Unexpected token ';'

DjQuinnEXP commented 4 months ago

@tig-support, we've noticed these issues as well and this PR would fix it. Would it be possible to merge so we could release it in a soon-ish manner?