diff --git a/src/app/(main)/dashboard/DashboardEdit.tsx b/src/app/(main)/dashboard/DashboardEdit.tsx index 5be687b38..cc25fb442 100644 --- a/src/app/(main)/dashboard/DashboardEdit.tsx +++ b/src/app/(main)/dashboard/DashboardEdit.tsx @@ -55,12 +55,7 @@ export function DashboardEdit({ teamId }: { teamId: string }) { const orderedWebsites = [...ordered]; const [removed] = orderedWebsites.splice(source.index, 1); orderedWebsites.splice(destination.index, 0, removed); - - setOrder( - orderedWebsites - .map(website => website?.id) - .filter((id): id is string => typeof id === 'string'), - ); + setOrder(orderedWebsites.filter(website => website?.id).map(website => website.id)); setEdited(true); } function handleActiveWebsites(id: string) { diff --git a/src/app/(main)/dashboard/DashboardPage.tsx b/src/app/(main)/dashboard/DashboardPage.tsx index 46faf059b..8dde22666 100644 --- a/src/app/(main)/dashboard/DashboardPage.tsx +++ b/src/app/(main)/dashboard/DashboardPage.tsx @@ -49,7 +49,7 @@ export function DashboardPage() { <> {editing && } {!editing && - (websiteActive.length != 0 ? ( + (websiteActive.length !== 0 ? ( <>