Skip to content

Commit

Permalink
Fix trimmed title preventing submitted title from being selected
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Mar 28, 2024
1 parent 7a2a1e7 commit a5bed61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/submission/submitButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export class SubmitButton {
unsubmitted.thumbnails.forEach((t) => t.selected = false);

if (title) {
const unsubmittedTitle = unsubmitted.titles.find((t) => t.title === title!.title);
const unsubmittedTitle = unsubmitted.titles.find((t) => t.title.trim() === title!.title);
if (unsubmittedTitle) unsubmittedTitle.selected = true;
}

Expand Down

0 comments on commit a5bed61

Please sign in to comment.