Skip to content

Commit

Permalink
home: Fix typos (or potential minor bugs)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrRip committed Nov 6, 2023
1 parent 66d480d commit 0e1a114
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/home/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ const viewPlaylistData = computed<Playlist>(() => {
song[`${viewPlaylistSortingColumn.value}Pinyin`] =
// @ts-ignore
pinyin(song[viewPlaylistSortingColumn.value], { toneType: 'none', nonZh: 'consecutive' })
.replace('/ /g', '')
.replace(' ', '')
playlist.push(song)
})
playlist.sort((a, b) => {
Expand All @@ -462,6 +462,7 @@ const viewPlaylistData = computed<Playlist>(() => {
return ((a.payment_amount ?? 0) - (b.payment_amount ?? 0)) * orderModifier
})
} else
// Sort by language
if (viewPlaylistSortingColumn.value === 'language') {
playlist = backendPlaylistShuffled.value.slice()
Expand Down

0 comments on commit 0e1a114

Please sign in to comment.