Commit 668f59c
committed
Fix TS2345: wrap cleanup to return void instead of Promise
useEffect cleanup functions must return void, not Promise<void>.
The arrow shorthand was implicitly returning the promise from
clearActiveTransactionIDs(). Wrapping in a block body discards it.
Made-with: Cursor1 parent 9cb1ede commit 668f59c
2 files changed
Lines changed: 6 additions & 2 deletions
File tree
- src/components/MoneyRequestReportView
- tests/unit
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
0 commit comments