Skip to content

Commit

Permalink
fix(wallet-mobile): crash reporting persistence and catalyst votin
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Nov 18, 2024
1 parent b572d59 commit 197a8be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/wallet-mobile/src/yoroi-wallets/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 197a8be

Please sign in to comment.