Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: fix selection to use id

Nevo David460521cc19c3
diff --git a/apps/frontend/src/components/launches/helpers/pick.platform.component.tsx b/apps/frontend/src/components/launches/helpers/pick.platform.component.tsx
index c749b9294..141c1aca0 100644
--- a/apps/frontend/src/components/launches/helpers/pick.platform.component.tsx
+++ b/apps/frontend/src/components/launches/helpers/pick.platform.component.tsx
@@ -86,7 +86,7 @@ export const PickPlatforms: FC<{
);
return;
}
- if (selectedAccounts.includes(integration)) {
+ if (selectedAccounts.some((account) => account.id === integration.id)) {
const changedIntegrations = selectedAccounts.filter(
({ id }) => id !== integration.id
);