Skip to content

Commit

Permalink
Revert "Switch off ts-expect-error on flaky immer error"
Browse files Browse the repository at this point in the history
This reverts commit 8471981.
  • Loading branch information
MajorLift committed Aug 2, 2024
1 parent d643c81 commit 82dc115
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,7 @@ export class SubjectMetadataController extends BaseController<
*/
trimMetadataState(): void {
this.update((draftState) => {
// 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 ts(2589)
return SubjectMetadataController.getTrimmedState(
draftState,
this.subjectHasPermissions,
Expand Down

0 comments on commit 82dc115

Please sign in to comment.