This commit is contained in:
Kenneth Jannette
2024-02-21 22:13:11 -06:00
parent 5a70ad2433
commit 6ccab42685

View File

@@ -357,16 +357,16 @@ const DocEditPage = () => {
}; };
async function createAndReturnDocx() { async function createAndReturnDocx() {
setIsBusy(true);
window.scrollTo({ top: 0, behavior: "smooth" }); window.scrollTo({ top: 0, behavior: "smooth" });
setIsBusy(true);
const response = await handleCreateDocx(); const response = await handleCreateDocx();
if (response.status === 200) { if (response.status === 200) {
setTimeout(getDocx, 5000); setTimeout(getDocx, 5000);
setTimeout(flipBusy, 2500);
setTimeout(cleanUpDocx, 10000); setTimeout(cleanUpDocx, 10000);
} else { } else {
setShowErrorModal(true); setShowErrorModal(true);
} }
setTimeout(flipBusy, 2500);
} }
async function cleanUpDocx() { async function cleanUpDocx() {