diff --git a/src/app/(main)/dashboard/DashboardEdit.tsx b/src/app/(main)/dashboard/DashboardEdit.tsx index 50b3f89f4..5be687b38 100644 --- a/src/app/(main)/dashboard/DashboardEdit.tsx +++ b/src/app/(main)/dashboard/DashboardEdit.tsx @@ -56,7 +56,11 @@ export function DashboardEdit({ teamId }: { teamId: string }) { const [removed] = orderedWebsites.splice(source.index, 1); orderedWebsites.splice(destination.index, 0, removed); - setOrder(orderedWebsites.map(website => website?.id || 0)); + setOrder( + orderedWebsites + .map(website => website?.id) + .filter((id): id is string => typeof id === 'string'), + ); setEdited(true); } function handleActiveWebsites(id: string) { diff --git a/src/app/(main)/dashboard/DashboardPage.tsx b/src/app/(main)/dashboard/DashboardPage.tsx index 9085903a4..46faf059b 100644 --- a/src/app/(main)/dashboard/DashboardPage.tsx +++ b/src/app/(main)/dashboard/DashboardPage.tsx @@ -15,7 +15,7 @@ export function DashboardPage() { const { teamId, renderTeamUrl } = useTeamUrl(); const { showCharts, editing, isEdited, websiteActive } = useDashboard(); const { dir } = useLocale(); - const pageSize = isEdited ? 10 : 200; + const pageSize = isEdited ? 200 : 10; const handleEdit = () => { saveDashboard({ editing: true }); }; @@ -59,7 +59,7 @@ export function DashboardPage() { diff --git a/src/components/messages.ts b/src/components/messages.ts index 63e90c78a..7c829e34b 100644 --- a/src/components/messages.ts +++ b/src/components/messages.ts @@ -390,7 +390,7 @@ export const messages = defineMessages({ }, noWebsitesToggled: { id: 'message.no-websites-toggled', - defaultMessage: 'You haven't toggled any websites', + defaultMessage: 'You have not toggled any websites', }, noTeamWebsites: {