Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 [open-formulieren/open-forms#3536] Manually parse product amount field
Using zod parse or parseSafe (to not crash) can't properly handle invalid amount values for a single product. This happens when clearing the input and causing a crash of the entire form. Since we only want to pass down the (valid) data for subsequent product selections, we need some additional robustness on data that is potentially invalid. This is to hold us over until we can properly do this in typescript and get type safety through a compiler instead of chasing after the facts through propTypes.
- Loading branch information