Skip to content

Commit

Permalink
don't add empty sfx name to validUrls
Browse files Browse the repository at this point in the history
  • Loading branch information
headshot2017 committed Nov 21, 2023
1 parent 732eda8 commit 81f3963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const getCharacterUrls = async () => {
for (const value in charIni[key]) {
const sfx = charIni[key][value];
const sfxUrl = `${BASE_SOUNDS_URL}` + "general/" + sfx + ".opus";
if (sfx != null && sfx != "0" && sfx != "1" && !validUrls.find((existing) => existing == sfxUrl))
if (sfx != null && sfx.length > 0 && sfx != "0" && sfx != "1" && !validUrls.find((existing) => existing == sfxUrl))
validUrls.push(sfxUrl);
}
}
Expand Down

0 comments on commit 81f3963

Please sign in to comment.