Skip to content

Commit

Permalink
Switch off ts-expect-error on flaky immer error
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Aug 2, 2024
1 parent afb1f97 commit 1b1d257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/permission-controller/src/PermissionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,7 @@ export class PermissionController<

if (caveatIndex === -1) {
// Do not remove this comment - This error is flaky: Comment out or restore the `ts-expect-error` directive below as needed.
// @ts-expect-error - Known issue: `Json` causes recursive error in immer `Draft`/`WritableDraft` types (See: https://github.com/MetaMask/utils/issues/168)
// // @ts-expect-error - Known issue: `Json` causes recursive error in immer `Draft`/`WritableDraft` types (See: https://github.com/MetaMask/utils/issues/168)
permission.caveats.push(caveat);
} else {
permission.caveats.splice(caveatIndex, 1, caveat);
Expand Down

0 comments on commit 1b1d257

Please sign in to comment.