Skip to content

Commit

Permalink
dev mongo server
Browse files Browse the repository at this point in the history
  • Loading branch information
jekku123 committed Apr 8, 2024
1 parent 9ba39a2 commit fd2609b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.env
mydata
mongo_data
3 changes: 1 addition & 2 deletions client/src/hooks/useTitle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit fd2609b

Please sign in to comment.