Skip to content

Commit

Permalink
docs: 📚 update README.md
Browse files Browse the repository at this point in the history
Fixed suffix example using wrong method
  • Loading branch information
andrewdyer committed Aug 8, 2024
1 parent 045f901 commit 96ff60c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ function App() {

useEffect(() => {
if (newMessages > 0) {
setNotificationText(`${newMessages} new message${newMessages > 1 ? 's' : ''}`);
setDocumentTitleSuffix(`${newMessages} new message${newMessages > 1 ? 's' : ''}`);
} else {
clearNotificationText();
}
}, [newMessages, setNotificationText, clearNotificationText]);
}, [newMessages, setDocumentTitleSuffix, clearNotificationText]);

return (
<div>
Expand Down

0 comments on commit 96ff60c

Please sign in to comment.