From 0307fdb1903315dde61e736291a0a870397aa5d0 Mon Sep 17 00:00:00 2001 From: Konstantin Fandelyuk Date: Thu, 19 Sep 2024 22:54:42 +0300 Subject: [PATCH] updated --- blocks/commerce-search-order/commerce-search-order.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/blocks/commerce-search-order/commerce-search-order.js b/blocks/commerce-search-order/commerce-search-order.js index 267ca14210..690074e333 100644 --- a/blocks/commerce-search-order/commerce-search-order.js +++ b/blocks/commerce-search-order/commerce-search-order.js @@ -36,7 +36,11 @@ export default async function decorate(block) { return true; }, routeCustomerOrder: () => '/customer/order-details', - routeGuestOrder: () => '/order-details', + routeGuestOrder: () => { + block.innerHTML = ''; + + return '/order-details'; + }, onError: async (errorInformation) => { console.info('errorInformation', errorInformation); },