Skip to content

Commit

Permalink
fix: mixer-preset compare both sides as uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed Jun 8, 2020
1 parent ac97d70 commit 0617fec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/utils/SettingsStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ export const getMixerPresetList = (fileExtension: string): string[] => {
.readdirSync(path.resolve('storage'))
.filter((file: string) => {
if (
file.includes('.' + fileExtension.toUpperCase()) &&
file !== 'default.' + fileExtension
file.toUpperCase().includes('.' + fileExtension.toUpperCase())
) {
return true
}
Expand Down

0 comments on commit 0617fec

Please sign in to comment.