Skip to content

Commit 87bb640

Browse files
committed
fix: strategy should honor the Strategy signature
1 parent 3fe0ba1 commit 87bb640

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/helpers/strategies.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ async function loadStrategies() {
3030
return true;
3131
}
3232

33-
const strat = Object.values(res).map((strategy: any) => {
34-
strategy.id = strategy.key;
35-
strategy.override = strategy.dependOnOtherAddress || false;
36-
strategy.disabled = strategy.disabled || false;
37-
return strategy;
38-
});
33+
const strat = Object.values(res).map((strategy: any) => ({
34+
id: strategy.key,
35+
override: strategy.dependOnOtherAddress || false,
36+
disabled: strategy.disabled || false
37+
}));
3938

4039
strategies = Object.fromEntries(strat.map(strategy => [strategy.id, strategy]));
4140
}

0 commit comments

Comments
 (0)