Skip to content

Commit 4f5e32b

Browse files
committed
fix(sagas): resolve variable shadowing crash in init
Fixes JSON.parse(undefined) SyntaxError in app/sagas/init.js when AsyncStorage.removeItem returns undefined. Closes #7014
1 parent 48c5fc2 commit 4f5e32b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/sagas/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const restore = function* restore() {
5656
yield put(appReady({}));
5757
const pushNotification = yield call(AsyncStorage.getItem, 'pushNotification');
5858
if (pushNotification) {
59-
const pushNotification = yield call(AsyncStorage.removeItem, 'pushNotification');
59+
yield call(AsyncStorage.removeItem, 'pushNotification');
6060
yield call(deepLinkingClickCallPush, JSON.parse(pushNotification));
6161
}
6262
} catch (e) {

0 commit comments

Comments
 (0)