diff --git a/apps/spreadsheeteditor/mobile/src/controller/LongActions.jsx b/apps/spreadsheeteditor/mobile/src/controller/LongActions.jsx index c7617d8fd..7b67bb3c9 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/LongActions.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/LongActions.jsx @@ -223,12 +223,15 @@ const LongActionsController = () => { onClick: () => { let password = document.getElementById('modal-password').value; if(apiCallback) { - apiCallback(true ? api.asc_checkProtectedRangesPassword(password, data) : false, false); + api.asc_checkProtectedRangesPassword(password, data, (res) => { + apiCallback(res, false); + }); } } }, { - text: t('LongActions.textCancel') + text: t('LongActions.textCancel'), + onClick: () => apiCallback(false, true) } ] }).open();