From 9242d560b00df988b032ce2acbeea9caa669cde1 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Fri, 12 Dec 2025 01:26:28 +0000 Subject: [PATCH] apiService.getBloomsByHashtag(hashtag) was not waiting for the response --- front-end/views/hashtag.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front-end/views/hashtag.mjs b/front-end/views/hashtag.mjs index 7b7e996..bb00dce 100644 --- a/front-end/views/hashtag.mjs +++ b/front-end/views/hashtag.mjs @@ -14,10 +14,10 @@ import {createHeading} from "../components/heading.mjs"; // Hashtag view: show all tweets containing this tag -function hashtagView(hashtag) { +async function hashtagView(hashtag) { destroy(); - apiService.getBloomsByHashtag(hashtag); + await apiService.getBloomsByHashtag(hashtag); renderOne( state.isLoggedIn,