mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-06-03 08:53:14 +00:00
Fix cart not displaying errors correctly
This commit is contained in:
parent
584ab41f79
commit
d9bea89c0b
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue