From 6ccab42685405ab6655f2f053305419b4284c57f Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Wed, 21 Feb 2024 22:13:11 -0600 Subject: [PATCH] more --- src/Components/Document/DocEditPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Document/DocEditPage.js b/src/Components/Document/DocEditPage.js index 079b915..d57d210 100644 --- a/src/Components/Document/DocEditPage.js +++ b/src/Components/Document/DocEditPage.js @@ -357,16 +357,16 @@ const DocEditPage = () => { }; async function createAndReturnDocx() { - setIsBusy(true); window.scrollTo({ top: 0, behavior: "smooth" }); + setIsBusy(true); const response = await handleCreateDocx(); if (response.status === 200) { setTimeout(getDocx, 5000); + setTimeout(flipBusy, 2500); setTimeout(cleanUpDocx, 10000); } else { setShowErrorModal(true); } - setTimeout(flipBusy, 2500); } async function cleanUpDocx() {