Skip to content

Commit 312909a

Browse files
committed
refactor(search): integrate sort button conditional into existing block
1 parent 127e8c5 commit 312909a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,7 @@ export const SearchSongPage = () => {
507507
const orderIcon = useMemo(() => {
508508
if (sort === SongSortType.RANDOM) {
509509
return faShuffle;
510-
}
511-
if (sort === SongSortType.TITLE) {
510+
} else if (sort === SongSortType.TITLE) {
512511
return order === SongOrderType.ASC ? faArrowDownAZ : faArrowDownZA;
513512
} else {
514513
return order === SongOrderType.ASC ? faArrowDown19 : faArrowDown91;

0 commit comments

Comments
 (0)