From 874f48c9d980d71360b7b81c81ffa00828fbc576 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 29 May 2024 16:44:00 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../components/pages/guided-mode/data/GuidedSourceData.js | 3 +-- .../core/components/pages/guided-mode/options/utils.js | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/electron/frontend/core/components/pages/guided-mode/data/GuidedSourceData.js b/src/electron/frontend/core/components/pages/guided-mode/data/GuidedSourceData.js index 611dad149..364c3eabb 100644 --- a/src/electron/frontend/core/components/pages/guided-mode/data/GuidedSourceData.js +++ b/src/electron/frontend/core/components/pages/guided-mode/data/GuidedSourceData.js @@ -82,11 +82,10 @@ export class GuidedSourceDataPage extends ManagedPage { heightAuto: false, backdrop: "rgba(0,0,0, 0.4)", timerProgressBar: false, - didOpen: () => Swal.showLoading() + didOpen: () => Swal.showLoading(), }); }; - setTimeout(() => { if (stillFireSwal) fireSwal(); }); diff --git a/src/electron/frontend/core/components/pages/guided-mode/options/utils.js b/src/electron/frontend/core/components/pages/guided-mode/options/utils.js index 876c2738b..6a2764cf2 100644 --- a/src/electron/frontend/core/components/pages/guided-mode/options/utils.js +++ b/src/electron/frontend/core/components/pages/guided-mode/options/utils.js @@ -75,7 +75,7 @@ export const run = async (pathname, payload, options = {}) => { // Clear private keys from being passed payload = sanitize(structuredClone(payload)); - console.warn('FETCH?') + console.warn("FETCH?"); const results = await fetch(new URL(pathname, baseUrl), { method: "POST", headers: { "Content-Type": "application/json" }, @@ -84,7 +84,7 @@ export const run = async (pathname, payload, options = {}) => { }) .then(async (res) => { const json = await res.json(); - console.warn('FETCH!', json) + console.warn("FETCH!", json); if (!res.ok) { const message = json.message; @@ -95,11 +95,10 @@ export const run = async (pathname, payload, options = {}) => { return json; }) .finally(() => { - console.warn('CANCEL?') + console.warn("CANCEL?"); if (internalSwal) Swal.close(); }); - return results || true; };