Skip to content

Commit

Permalink
Make deletion screen case-insensitive (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
duogenesis authored Mar 1, 2024
1 parent 6227d45 commit a99fcd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/option-groups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ const deletionOptionGroups: OptionGroup<OptionGroupTextShort>[] = [
input: {
textShort: {
submit: async (input: string) => {
if ((input ?? '').trim() !== 'delete') return false;
if ((input ?? '').toLowerCase().trim() !== 'delete') return false;

const response = await japi('delete', '/account');

Expand Down

0 comments on commit a99fcd9

Please sign in to comment.