Skip to content

Commit

Permalink
Jennifer/fix_navigator_error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennievon authored Dec 8, 2023
1 parent d9ead96 commit 4eb837e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const MessageContent = (
);

export const NetworkStatus = ({ message = MessageContent }) => {
const [isOnline, setIsOnline] = React.useState(navigator.onLine);
const [isOnline, setIsOnline] = React.useState(true);

React.useEffect(() => {
const setOnlineStatus = () => {
Expand Down

0 comments on commit 4eb837e

Please sign in to comment.