Foxy / foxy-elements

Elements and resources for use in other front-end code, like the admin and customer portal.
https://elements.foxy.dev
MIT License
7 stars 8 forks source link

Add validations for coupon and gift card codes to prevent spaces #123

Closed adamjudd closed 1 year ago

adamjudd commented 1 year ago

We'll be introducing changes to the API to prevent spaces from being entered for codes for gift cards and coupons in the future. To provide a clearer error to users than a generic error, we'll need to introduce client-side validations for preventing spaces as well. This should apply for both bulk adding and generation with prefixes.

I'm guessing this won't be bad to add before the API level change is added that would actually error, if that's right, this can be added whenever it's ready.

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.22.0-beta.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.22.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: