diff --git a/lib/js/src/manager/screen/utils/_PresentAlertOperation.js b/lib/js/src/manager/screen/utils/_PresentAlertOperation.js index 0a7fd476..939b2b42 100644 --- a/lib/js/src/manager/screen/utils/_PresentAlertOperation.js +++ b/lib/js/src/manager/screen/utils/_PresentAlertOperation.js @@ -304,7 +304,7 @@ class _PresentAlertOperation extends _Task { if (this._alertView.getSoftButtons() !== null) { const softButtons = []; - for (let index = 0; index < this._alertView.getSoftButtons().length; index++) { + for (let index = 0; index < this._getSoftButtonCount(); index++) { softButtons.push(this._alertView.getSoftButtons()[index].getCurrentStateSoftButton()); } alert.setSoftButtons(softButtons);