Commit 81b8e58
committed
fix: normalize orphaned random-custom completion sound on rehydrate
Adds a guard in the persist merge function so that if completionSound is
"random-custom" but customSounds is empty, it falls back to "none". Prevents
the Select trigger rendering a ghost value after a partial rehydrate or
app-version transition that leaves the library empty.
Generated-By: PostHog Code
Task-Id: 2e7e511c-6b31-4480-8ac1-37863ddd7c3b1 parent db65f2f commit 81b8e58
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
472 | 478 | | |
473 | 479 | | |
474 | 480 | | |
| |||
0 commit comments