Skip to content

Commit

Permalink
Merge pull request Expensify#43159 from nkdengineer/fix/43116
Browse files Browse the repository at this point in the history
fix: App is stuck offline after 'Force offline' toggled on and off
  • Loading branch information
pecanoro authored Jun 11, 2024
2 parents 1470f6e + e1aee8b commit 4d07594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/NetworkConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Onyx.connect({
} else {
// If we are no longer forcing offline fetch the NetInfo to set isOffline appropriately
NetInfo.fetch().then((state) => {
const isInternetReachable = !!state.isInternetReachable;
const isInternetReachable = (state.isInternetReachable ?? false) === false;
setOfflineStatus(isInternetReachable, 'NetInfo checked if the internet is reachable');
Log.info(
`[NetworkStatus] The force-offline mode was turned off. Getting the device network status from NetInfo. Network state: ${JSON.stringify(
Expand Down

0 comments on commit 4d07594

Please sign in to comment.