From 382eebb108a790ddf4d1f345cbd20ba5c37a2f82 Mon Sep 17 00:00:00 2001 From: Getabalew Tesfaye Date: Tue, 20 Feb 2024 22:24:51 +0300 Subject: [PATCH] chore: improve code --- __mocks__/@react-native-community/netinfo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__mocks__/@react-native-community/netinfo.ts b/__mocks__/@react-native-community/netinfo.ts index 15f2aeb1cfd3..db0d34e2276d 100644 --- a/__mocks__/@react-native-community/netinfo.ts +++ b/__mocks__/@react-native-community/netinfo.ts @@ -7,7 +7,7 @@ const defaultState: NetInfoState = { isInternetReachable: true, details: { isConnectionExpensive: true, - cellularGeneration: NetInfoCellularGeneration ? NetInfoCellularGeneration['3g'] : null, + cellularGeneration: NetInfoCellularGeneration?.['3g'], carrier: 'T-Mobile', }, };