fix for undefined access to crash field

This commit is contained in:
Nikhil Nandagopal 2020-12-09 18:22:36 +05:30
parent 7d70a71d70
commit d228f6d117

View File

@ -108,7 +108,7 @@ export function* errorSaga(
if (show) {
effects.push(ErrorEffectTypes.SHOW_ALERT);
}
if (error.crash) {
if (error && error.crash) {
effects.push(ErrorEffectTypes.SAFE_CRASH);
}
for (const effect of effects) {