Skip to content

Commit

Permalink
exclude disconnected strategies from home page
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkunz committed Dec 9, 2024
1 parent d1410ed commit f54d1dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/routes/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { getCachedStrategies } from 'trade-executor/models/strategy-info';

export async function load({ fetch }) {
const strategies = (await getCachedStrategies(fetch)).filter((s) => s.frontpage);
const strategies = await getCachedStrategies(fetch);

return { strategies };
return {
strategies: strategies.filter((s) => s.frontpage && s.connected)
};
}

0 comments on commit f54d1dc

Please sign in to comment.