diff --git a/.gitignore b/.gitignore index 873b1a4..ced293b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ .env -mydata +mongo_data diff --git a/client/src/hooks/useTitle.ts b/client/src/hooks/useTitle.ts index 4708611..0baa0b2 100644 --- a/client/src/hooks/useTitle.ts +++ b/client/src/hooks/useTitle.ts @@ -3,9 +3,8 @@ import { useEffect } from 'react'; export function useTitle(title: string) { useEffect(() => { const prevTitle = document.title; - document.title = title; + document.title = `Expense Tracker | ${title}`; - // Return a cleanup function return () => { document.title = prevTitle; };