File tree Expand file tree Collapse file tree
lib/js/src/manager/screen/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -267,12 +267,17 @@ class _PresentAlertOperation extends _Task {
267267 if ( this . _lifecycleManager !== null && this . _lifecycleManager . getSdlMsgVersion ( ) !== null && this . _lifecycleManager . getSdlMsgVersion ( ) . getMajorVersion ( ) < 6 ) {
268268 console . log ( 'Attempting to cancel this operation in-progress; if the alert is already presented on the module, it cannot be dismissed.' ) ;
269269 this . switchStates ( _Task . CANCELED ) ;
270+ return ;
270271 } else if ( ! this . _isAlertPresented ) {
271272 console . log ( 'Alert has not yet been sent to the module. Alert will not be shown.' ) ;
273+ this . switchStates ( _Task . CANCELED ) ;
274+ return ;
272275 }
273276 console . log ( 'Canceling the presented alert' ) ;
274277
275- const cancelInteraction = new CancelInteraction ( FunctionID . Alert , this . _cancelId ) ;
278+ const cancelInteraction = new CancelInteraction ( )
279+ . setFunctionIDParam ( FunctionID . Alert )
280+ . setCancelID ( this . _cancelId ) ;
276281 const response = await this . _lifecycleManager . sendRpcResolve ( cancelInteraction ) ;
277282 if ( ! response . getSuccess ( ) ) {
278283 console . log ( `Error canceling the presented alert: ${ response . getInfo ( ) } ` ) ;
You can’t perform that action at this time.
0 commit comments