Skip to content

Commit cd50701

Browse files
committed
🐛 FIX: state mangement in Logout
1 parent 71c0a8b commit cd50701

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ OR
2626
yarn create react-app your-project-name --template typescript-firebase
2727
```
2828

29-
`npx` command installs the most recent stable version of CRA from npm.
30-
31-
`--template` parameter points to this template, note that `cra-template-` prefix is omitted.
32-
3329
## ⚙️ Usage
3430

3531
### SetUp firebase

src/components/auth/Logout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@ const Logout = ({ navigateTo = "/login" }: Props) => {
1616
signOut(auth)
1717
.then(() => {
1818
navigate(navigateTo);
19+
setDisabled(false);
1920
})
2021
.catch((error) => {
2122
console.error(error);
22-
})
23-
.finally(() => {
24-
setDisabled(false);
2523
});
2624
};
2725

0 commit comments

Comments
 (0)