We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fe0ba1 commit 87bb640Copy full SHA for 87bb640
src/helpers/strategies.ts
@@ -30,12 +30,11 @@ async function loadStrategies() {
30
return true;
31
}
32
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
- });
+ const strat = Object.values(res).map((strategy: any) => ({
+ id: strategy.key,
+ override: strategy.dependOnOtherAddress || false,
+ disabled: strategy.disabled || false
+ }));
39
40
strategies = Object.fromEntries(strat.map(strategy => [strategy.id, strategy]));
41
0 commit comments