From b099bcc9dada46eedef350d3a80315fad0035617 Mon Sep 17 00:00:00 2001 From: Stefano Ottolenghi Date: Thu, 19 Oct 2023 07:33:25 +0200 Subject: [PATCH] on x vanish immediately --- src/js/11-feedback.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/11-feedback.js b/src/js/11-feedback.js index 26df2a0d..42cb7b5e 100644 --- a/src/js/11-feedback.js +++ b/src/js/11-feedback.js @@ -96,7 +96,7 @@ const URL = 'https://uglfznxroe.execute-api.us-east-1.amazonaws.com/dev/Feedback e.preventDefault() sendRequest({ helpful: true }) // get positive feedback even if thet bail out before completion //localStorage.removeItem('userJourney') - setTimeout(() => { fadeOut(feedback, 50) }, 2000) + setTimeout(() => { fadeOut(feedback, 50) }, 0) }) feedback.querySelector('.primary').addEventListener('click', function (e) {