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 405719f commit d643c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/accounts-controller/src/AccountsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ export class AccountsController extends BaseController<
metadata: { ...account.metadata, ...metadata },
};
// 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)
currentState.internalAccounts.accounts[accountId] = internalAccount;
});
}
Expand Down

0 comments on commit d643c81

Please sign in to comment.