Skip to content

Commit 26d27cd

Browse files
committed
fix(search): prevent page title from refreshing when on browse mode
1 parent 361ff92 commit 26d27cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/frontend/src/modules/song-search/SearchSongPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ const SearchHeader = ({
159159
const isSearch = useMemo(() => query !== '', [query]);
160160

161161
const title = useMemo(() => {
162-
if (loading) return '';
163162
if (isSearch) {
163+
if (loading) return '';
164164
// TODO: implement this with proper variable substitution for translations
165165
if (totalResults != 1) {
166166
return `${totalResults.toLocaleString('en-UK')} results for "${query}"`;

0 commit comments

Comments
 (0)