Fix cart not displaying errors correctly

This commit is contained in:
Michał 2024-05-05 13:01:35 +01:00
parent 584ab41f79
commit d9bea89c0b

View file

@ -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>