From cb75da916a841b803e2a2be81df492da50781573 Mon Sep 17 00:00:00 2001 From: stackchain <30806844+stackchain@users.noreply.github.com> Date: Tue, 18 Jan 2022 13:19:11 -0500 Subject: [PATCH] [chore] Enabling crashing reports if nightly --- legacy/actions.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/legacy/actions.js b/legacy/actions.js index baff0d8a9a..a112780fb6 100644 --- a/legacy/actions.js +++ b/legacy/actions.js @@ -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' @@ -223,6 +223,10 @@ export const initApp = () => async (dispatch: Dispatch, 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())