Skip to content

Commit

Permalink
[chore] Enabling crashing reports if nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
stackchain committed Jan 18, 2022
1 parent 54d401b commit cb75da9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion legacy/actions.js
Expand Up @@ -13,7 +13,7 @@ import {changeAndSaveLanguage} from './actions/language'
import {fetchTokenInfo} from './actions/tokenInfo'
import {clearUTXOs} from './actions/utxo'
import * as api from './api/shelley/api'
import {CONFIG} from './config/config'
import {CONFIG, isNightly} from './config/config'
import {getCardanoNetworkConfigById} from './config/networks'
import type {NetworkId, WalletImplementationId, YoroiProvider} from './config/types'
import {encryptCustomPin} from './crypto/customPin'
Expand Down Expand Up @@ -223,6 +223,10 @@ export const initApp = () => async (dispatch: Dispatch<any>, getState: any) => {
Logger.warn('actions::initApp could not retrieve server status', e)
}

if (isNightly()) {
dispatch(setAppSettingField(APP_SETTINGS_KEYS.SEND_CRASH_REPORTS, true))
}

await dispatch(reloadAppSettings())

const installationId = await dispatch(initInstallationId())
Expand Down

0 comments on commit cb75da9

Please sign in to comment.