diff --git a/apps/frontend/src/components/new-launch/picks.socials.component.tsx b/apps/frontend/src/components/new-launch/picks.socials.component.tsx index 116395ca91..006641d30c 100644 --- a/apps/frontend/src/components/new-launch/picks.socials.component.tsx +++ b/apps/frontend/src/components/new-launch/picks.socials.component.tsx @@ -6,13 +6,12 @@ import SafeImage from '@gitroom/react/helpers/safe.image'; import { useLaunchStore } from '@gitroom/frontend/components/new-launch/store'; import { useShallow } from 'zustand/react/shallow'; import { useExistingData } from '@gitroom/frontend/components/launches/helpers/use.existing.data'; -import { makeId } from '@gitroom/nestjs-libraries/services/make.is'; import ImageWithFallback from '@gitroom/react/helpers/image.with.fallback'; export const PicksSocialsComponent: FC<{ toolTip?: boolean }> = ({ toolTip, }) => { - const exising = useExistingData(); + const existing = useExistingData(); const { locked, @@ -35,8 +34,8 @@ export const PicksSocialsComponent: FC<{ toolTip?: boolean }> = ({
{integrations .filter((f) => { - if (exising.integration) { - return f.id === exising.integration; + if (existing.integration) { + return f.id === existing.integration; } return !f.inBetweenSteps && !f.disabled; }) @@ -51,7 +50,7 @@ export const PicksSocialsComponent: FC<{ toolTip?: boolean }> = ({ >
{ - if (exising.integration) { + if (existing.integration) { return; } addOrRemoveSelectedIntegration(integration, {});