From e0969ae66f88d7b4624ed3b122241bef5f070df7 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 11:34:41 +0000 Subject: [PATCH] refactor: remove the console expressions It is considered a best practice to avoid the use of any `console` methods in JavaScript code that will run on the browser. **NOTE:** If your repository contains a server side project, you can add `"nodejs"` to the `environment` property of analyzer meta in `.deepsource.toml`. This will prevent this issue from getting raised. Documentation for the analyzer meta can be found [here](https://docs.deepsource.com/docs/analyzers-javascript#meta). Alternatively, you can silence this issue for your repository [as shown here](https://deepsource.com/blog/releases-issue-actions). If a specific `console` call is meant to stay for other reasons, you can add [a skipcq comment](https://docs.deepsource.com/docs/issues-ignore-rules#silencing-a-specific-issue) to that line. This will inform other developers about the reason behind the log's presence, and prevent DeepSource from flagging it. --- front/src/lib/test-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/lib/test-api.ts b/front/src/lib/test-api.ts index 13ca0c0..54bfb4a 100644 --- a/front/src/lib/test-api.ts +++ b/front/src/lib/test-api.ts @@ -130,7 +130,7 @@ export async function postVerifyCart( Object.entries(currentCartData).forEach(([uuid, currentData]) => { verifiedItems.forEach((verifiedItem: Item) => { if (verifiedItem.uuid === uuid) { - console.log(verifiedItem, uuid); + newCartData[uuid] = { amount: currentData.amount, data: verifiedItem,