mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2024-12-28 18:36:25 +00:00
Fix cart not displaying errors correctly
This commit is contained in:
parent
584ab41f79
commit
d9bea89c0b
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
const minMessageLength = 150;
|
const minMessageLength = 150;
|
||||||
|
|
||||||
let formMessage: Promise<string>;
|
let formMessage: Promise<string | Error>;
|
||||||
|
|
||||||
let name = "";
|
let name = "";
|
||||||
let email = "";
|
let email = "";
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
validateName();
|
validateName();
|
||||||
validateEmail();
|
validateEmail();
|
||||||
validateMessage();
|
validateMessage();
|
||||||
return error;
|
throw error;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue