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