Skip to content

Commit 8e7b910

Browse files
committed
[Bugfix] Don't leave the saga on nested alerts prevention
1 parent fde42d0 commit 8e7b910

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-saga-rn-alert",
3-
"version": "1.2.6",
3+
"version": "1.2.7",
44
"description": "Alert-support for sagas and side-effects",
55
"main": "index.js",
66
"scripts": {

saga/alert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function * watchAlertChannel() {
1919
case ACTION_SHOW_ALERT:
2020
const {message, title, buttons, options} = action.payload;
2121

22-
if(_alertIsRunning && _preventNestedAlerts) return; // prevent nested alerts
22+
if(_alertIsRunning && _preventNestedAlerts) break; // prevent nested alerts
2323
_alertIsRunning = true;
2424

2525
Alert.alert(title, message, buttons, options)

0 commit comments

Comments
 (0)