Commit ee857cb
fix: use .catch() instead of .default() for period validation in checkout (#3972)
.default() only applies when value is undefined, but .catch() handles
any invalid value (e.g. 'monthly/' with trailing slash from Safari URL
handling) by falling back to 'monthly'.
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: yujonglee <yujonglee.dev@gmail.com>1 parent 2138dbd commit ee857cb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments