Commit 4757a5c
fix(billing): Prevent crash on invalid data category for plan
The getBucket function would throw an error when it couldn't find a
valid bucket for a data category, causing the billing overview page
to crash. Now it reports the error to Sentry with full context but
returns a fallback bucket with zero price, allowing the page to
continue rendering.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent f2883c3 commit 4757a5c
1 file changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
189 | 205 | | |
190 | 206 | | |
191 | 207 | | |
| |||
0 commit comments