diff --git a/apps/web/src/components/Home/Sidebar/StaffPicks.tsx b/apps/web/src/components/Home/Sidebar/StaffPicks.tsx index 7a616b84c57b..19ca8330bf7d 100644 --- a/apps/web/src/components/Home/Sidebar/StaffPicks.tsx +++ b/apps/web/src/components/Home/Sidebar/StaffPicks.tsx @@ -2,7 +2,7 @@ import SingleAccountShimmer from "@components/Shared/Shimmer/SingleAccountShimme import SingleAccount from "@components/Shared/SingleAccount"; import { CursorArrowRippleIcon as CursorArrowRippleIconOutline } from "@heroicons/react/24/outline"; import { HEY_API_URL } from "@hey/data/constants"; -import { type AccountFragment, useStaffPicksQuery } from "@hey/indexer"; +import { useStaffPicksQuery } from "@hey/indexer"; import type { StaffPick } from "@hey/types/hey"; import { Card, EmptyState, ErrorMessage, H5 } from "@hey/ui"; import { useQuery } from "@tanstack/react-query"; @@ -110,7 +110,7 @@ const StaffPicks: FC = () => { !account.operations?.isFollowedByMe && currentAccount?.address !== account.address ) - .slice(0, 5) as AccountFragment[]; + .slice(0, 5); if (filteredAccounts.length === 0) { return null; diff --git a/apps/web/src/components/Home/Sidebar/WhoToFollow.tsx b/apps/web/src/components/Home/Sidebar/WhoToFollow.tsx index a14fa76cbff6..51e0dc9286bf 100644 --- a/apps/web/src/components/Home/Sidebar/WhoToFollow.tsx +++ b/apps/web/src/components/Home/Sidebar/WhoToFollow.tsx @@ -51,7 +51,7 @@ const WhoToFollow: FC = () => { const recommendedAccounts = data?.mlAccountRecommendations.items.filter( (account) => !account.operations?.isBlockedByMe && !account.operations?.isFollowedByMe - ); + ) as AccountFragment[]; if (recommendedAccounts?.length === 0) { return null; @@ -90,7 +90,7 @@ const WhoToFollow: FC = () => { show={showMore} title="Suggested for you" > - + ); diff --git a/apps/web/src/components/Shared/Auth/Login.tsx b/apps/web/src/components/Shared/Auth/Login.tsx index 59f6548338d5..2de76a1ecede 100644 --- a/apps/web/src/components/Shared/Auth/Login.tsx +++ b/apps/web/src/components/Shared/Auth/Login.tsx @@ -7,7 +7,6 @@ import { HEY_APP } from "@hey/data/constants"; import { Errors } from "@hey/data/errors"; import { Events } from "@hey/data/events"; import { - type AccountFragment, useAccountsAvailableQuery, useAuthenticateMutation, useChallengeMutation @@ -106,9 +105,9 @@ const Login: FC = ({ setHasAccounts }) => { .map(({ account }) => account) : allProfiles.map(({ account }) => account); - const accounts = ( - lastLogin ? [lastLogin, ...remainingProfiles] : remainingProfiles - ) as AccountFragment[]; + const accounts = lastLogin + ? [lastLogin, ...remainingProfiles] + : remainingProfiles; return activeConnector?.id ? (