diff --git a/front-end/views/hashtag.mjs b/front-end/views/hashtag.mjs index 7b7e9969..9f3b801e 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 tag = hashtag.startsWith("#") ? hashtag : `#${hashtag}` + if (state.currentHashtag !== tag) { + apiService.getBloomsByHashtag(hashtag); + } renderOne( state.isLoggedIn,