Commit 2e5a30d
fix(rewards): accept readonly arrays in useInvalidateByRewardEvents
TypeScript infers tuple literals as readonly arrays, so callers passing
['RewardsController:accountLinked', ...] were failing strict type checks.
Widening the parameter to readonly RewardEvent[] fixes all affected hooks.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 43287d5 commit 2e5a30d
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments