Skip to content

Commit

Permalink
fix(cups): anti upload fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sunehs committed Jan 28, 2025
1 parent b25f539 commit 5b916e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/features/Upload/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ const Upload = ({ onUpload = null, filetype }) => {
});
let unlisted = false;
if (
['wc', 'cpc'].indexOf(fixedFiles[0].name.substring(0, 2).toLowerCase()) >
-1
['cpc'].indexOf(fixedFiles[0].name.substring(0, 3).toLowerCase()) > -1
) {
unlisted = true;
setWarning(
Expand Down
5 changes: 2 additions & 3 deletions src/pages/kuski/TimesReplays.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ const TimesReplays = ({ KuskiIndex, collapse }) => {
const selectToShare = rec => {
let unlisted = false;
if (
['wcup9', 'cpc'].indexOf(
rec.LevelData?.LevelName?.substring(0, 5).toLowerCase(),
) > -1
['cpc'].indexOf(rec.LevelData?.LevelName?.substring(0, 3).toLowerCase()) >
-1
) {
unlisted = true;
}
Expand Down

0 comments on commit 5b916e4

Please sign in to comment.