From f0d4672252fe5cd9d7ab9196511a0fcc0e0758cd Mon Sep 17 00:00:00 2001 From: Antoine Bagnaud Date: Thu, 21 Nov 2024 20:43:21 +0100 Subject: [PATCH] fix: just forward the promise. --- src/navigation/courier/barcode/Barcode.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/navigation/courier/barcode/Barcode.js b/src/navigation/courier/barcode/Barcode.js index 2c1685022..9ac73665f 100644 --- a/src/navigation/courier/barcode/Barcode.js +++ b/src/navigation/courier/barcode/Barcode.js @@ -141,16 +141,16 @@ function BarcodePage({ t, httpClient, navigation, _route, taskLists }) { } } - async function checkClientAction({ action, ...params }) { + function checkClientAction({ action, ...params }) { if (!entity) return; switch (action) { case 'ask_to_unassign': - return await askToUnassign(); + return askToUnassign(); case 'ask_to_assign': - return await askToAssign(); + return askToAssign(); case 'ask_to_complete': - return await new Promise((resolve, _reject) => { + return new Promise((resolve, _reject) => { navigateToTask( navigation, null, @@ -159,7 +159,7 @@ function BarcodePage({ t, httpClient, navigation, _route, taskLists }) { resolve(); }); case 'warn_multiple_packages': - return await params.fn(); + return params.fn(); default: return; }