diff --git a/front-end/views/hashtag.mjs b/front-end/views/hashtag.mjs index 7b7e9969..4502fe97 100644 --- a/front-end/views/hashtag.mjs +++ b/front-end/views/hashtag.mjs @@ -17,7 +17,10 @@ import {createHeading} from "../components/heading.mjs"; function hashtagView(hashtag) { destroy(); - apiService.getBloomsByHashtag(hashtag); + const hashtagWithHash = hashtag.startsWith("#") ? hashtag : `#${hashtag}`; + if (state.currentHashtag !== hashtagWithHash) { + apiService.getBloomsByHashtag(hashtag); + } renderOne( state.isLoggedIn,