From 2a9f7426d44ebc8740a5944565ca08f01d2ea7a9 Mon Sep 17 00:00:00 2001 From: donarbl Date: Fri, 27 Feb 2026 20:48:25 +0000 Subject: [PATCH 1/2] fixed hashtag view after API respons to preventflash --- front-end/views/hashtag.mjs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/front-end/views/hashtag.mjs b/front-end/views/hashtag.mjs index 7b7e996..f889e81 100644 --- a/front-end/views/hashtag.mjs +++ b/front-end/views/hashtag.mjs @@ -17,9 +17,8 @@ import {createHeading} from "../components/heading.mjs"; function hashtagView(hashtag) { destroy(); - apiService.getBloomsByHashtag(hashtag); - - renderOne( + apiService.getBloomsByHashtag(hashtag).then(() =>{ + renderOne( state.isLoggedIn, getLogoutContainer(), "logout-template", @@ -50,6 +49,8 @@ function hashtagView(hashtag) { "bloom-template", createBloom ); +}); } + export {hashtagView}; From 199b53cda1f0548bc01c6dbec32535d5366dc34f Mon Sep 17 00:00:00 2001 From: donarbl Date: Fri, 27 Feb 2026 20:53:08 +0000 Subject: [PATCH 2/2] changed login listener from click to submit on hashtag page --- front-end/views/hashtag.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/views/hashtag.mjs b/front-end/views/hashtag.mjs index f889e81..aeef5fa 100644 --- a/front-end/views/hashtag.mjs +++ b/front-end/views/hashtag.mjs @@ -35,7 +35,7 @@ function hashtagView(hashtag) { ); document .querySelector("[data-action='login']") - ?.addEventListener("click", handleLogin); + ?.addEventListener("submit", handleLogin); renderOne( state.currentHashtag,