Skip to content

Commit

Permalink
fix(suite-native): connection status default is online
Browse files Browse the repository at this point in the history
  • Loading branch information
vytick committed Aug 19, 2024
1 parent f8dd7ea commit 23890c1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { selectIsOnboardingFinished } from '@suite-native/settings';

export const useIsOfflineBannerVisible = () => {
const isOnboardingFinished = useSelector(selectIsOnboardingFinished);
const { isConnected } = useNetInfo();
const { isInternetReachable } = useNetInfo();

return !isConnected && isOnboardingFinished;
const isReachable = isInternetReachable ?? true;

return !isReachable && isOnboardingFinished;
};

0 comments on commit 23890c1

Please sign in to comment.