diff --git a/src/app/(dashboard)/page.tsx b/src/app/(dashboard)/page.tsx index 748847d..740d4d5 100644 --- a/src/app/(dashboard)/page.tsx +++ b/src/app/(dashboard)/page.tsx @@ -451,7 +451,7 @@ export default function Home(): ReactNode { const [descendingSort, setDescendingSort] = useState(false); const [showDeleteSelectedAlert, setShowDeleteSelectedAlert] = useState(false); - const projects = useLiveQuery(() => ( + const projects = useLiveQuery(async () => ( db.projects.toArray() )); @@ -510,7 +510,7 @@ export default function Home(): ReactNode { @@ -563,6 +563,7 @@ export default function Home(): ReactNode { setDescendingSort(pressed)}> {descendingSort ? : } + {descendingSort ? "Switch to Ascending Sorting" : "Switch to Descending Sorting"}