diff --git a/package.json b/package.json index 6727154..fb2ede6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redux-saga-rn-alert", - "version": "1.2.6", + "version": "1.2.7", "description": "Alert-support for sagas and side-effects", "main": "index.js", "scripts": { diff --git a/saga/alert.js b/saga/alert.js index 3987694..3cc1892 100644 --- a/saga/alert.js +++ b/saga/alert.js @@ -19,7 +19,7 @@ export function * watchAlertChannel() { case ACTION_SHOW_ALERT: const {message, title, buttons, options} = action.payload; - if(_alertIsRunning && _preventNestedAlerts) return; // prevent nested alerts + if(_alertIsRunning && _preventNestedAlerts) break; // prevent nested alerts _alertIsRunning = true; Alert.alert(title, message, buttons, options)