diff --git a/web/com.openbravo.decathlon.retail.selfcheckout.ticketdematerialization/js/hooks/preClearReceiptSCO.js b/web/com.openbravo.decathlon.retail.selfcheckout.ticketdematerialization/js/hooks/preClearReceiptSCO.js
index 6467ae7..73fc7fa 100644
--- a/web/com.openbravo.decathlon.retail.selfcheckout.ticketdematerialization/js/hooks/preClearReceiptSCO.js
+++ b/web/com.openbravo.decathlon.retail.selfcheckout.ticketdematerialization/js/hooks/preClearReceiptSCO.js
@@ -10,7 +10,7 @@
 /*
  * Creation of hook that is executed before receipt cleaning in SCO.
  */
-var decstdOriginalClearReceipt =
+const decstdOriginalClearReceipt =
   OB.SCO.APP.PANELRIGHT.ConfirmExitPanel.prototype.clearReceipt;
 OB.SCO.APP.PANELRIGHT.ConfirmExitPanel.prototype.clearReceipt = _.wrap(
   OB.SCO.APP.PANELRIGHT.ConfirmExitPanel.prototype.clearReceipt,
@@ -35,7 +35,8 @@ OB.SCO.APP.PANELRIGHT.ConfirmExitPanel.prototype.clearReceipt = _.wrap(
 
     return new Promise(async (resolve, reject) => {
       await executeAsyncHook();
-      return await clearReceipt();
+      await clearReceipt();
+      resolve();
     });
   }
 );
