diff --git a/front-end/components/bloom.mjs b/front-end/components/bloom.mjs index 0b4166c..25e6d45 100644 --- a/front-end/components/bloom.mjs +++ b/front-end/components/bloom.mjs @@ -38,7 +38,7 @@ function _formatHashtags(text) { if (!text) return text; return text.replace( /\B#[^#]+/g, - (match) => `${match}` + (match) => `${match}` ); } 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,