diff --git a/packages/permission-controller/src/PermissionController.ts b/packages/permission-controller/src/PermissionController.ts index a6e2dcec7f..9b2d2b08bc 100644 --- a/packages/permission-controller/src/PermissionController.ts +++ b/packages/permission-controller/src/PermissionController.ts @@ -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);