Commit dbe83e5
Fix forceEnabled override: use boolean comparison for localStorage
Mantine's useLocalStorage deserializes with JSON.parse, so a raw
localStorage.setItem('hdx-feedback-enabled', 'true') yields boolean true,
not string 'true'. Changed the hook type to boolean and comparison to
=== true so the override actually works.
Co-authored-by: Mike Shi <mike@hyperdx.io>1 parent 2e96d36 commit dbe83e5
1 file changed
Lines changed: 3 additions & 3 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments