diff --git a/apps/wallet-mobile/src/yoroi-wallets/hooks/index.ts b/apps/wallet-mobile/src/yoroi-wallets/hooks/index.ts index a456ca2916..fe7f9de4c6 100644 --- a/apps/wallet-mobile/src/yoroi-wallets/hooks/index.ts +++ b/apps/wallet-mobile/src/yoroi-wallets/hooks/index.ts @@ -46,10 +46,8 @@ const useCrashReportsEnabled = (storage: AsyncStorageStatic = AsyncStorage) => { enabled: !isNightly && !isDev, }) - if (query.data == null) throw new Error('invalid state') - if (isNightly || isDev) return true - return query.data + return query.data ?? true } const useSetCrashReportsEnabled = (storage: AsyncStorageStatic = AsyncStorage) => {