Skip to content

Commit

Permalink
refactor: simplify typing
Browse files Browse the repository at this point in the history
  • Loading branch information
0xyaco committed Sep 17, 2024
1 parent fc46522 commit 04e4ca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/automated-dispute/src/services/eboProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export class EboProcessor {

for (const [moduleName, moduleAddress] of Object.entries(this.accountingModules)) {
const isApproved = approvedModules.includes(moduleAddress);
const key = (isApproved ? "approved" : "notApproved") as keyof typeof summary;
const key = isApproved ? "approved" : "notApproved";

summary[key] = { ...summary[key], [moduleName]: moduleAddress };
summary[key][moduleName as keyof AccountingModules] = moduleAddress;
}

if (Object.keys(summary.notApproved).length > 0) {
Expand Down

0 comments on commit 04e4ca8

Please sign in to comment.