trim promocode field on use
This commit is contained in:
parent
e09443b4c6
commit
e2f5781d0c
@ -54,7 +54,7 @@ export default function Cart() {
|
||||
const promocode = promocodes.find(promocode => {
|
||||
if (promocode.dueTo < (Date.now() / 1000)) return false;
|
||||
|
||||
return promocode.codeword === couponField;
|
||||
return promocode.codeword === couponField.trim();
|
||||
});
|
||||
|
||||
const userId = crypto.randomUUID();
|
||||
|
Loading…
Reference in New Issue
Block a user