Skip to content

Commit

Permalink
Fixed casing missmatch (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
CallumCoy authored Dec 16, 2023
1 parent d414501 commit 3195d56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/commands/cat.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ const command: Command = {
let searchCom = '';

const breedIn = interaction.options.getString('breed')?.toLowerCase() ?? 'random';
// checks if their was a bread was a breed, then if that breed is recognized
const breedEntry = ALL_BREEDS.find((breed) => breed.name === breedIn);
// checks if their was a breed was a breed, then if that breed is recognized
const breedEntry = ALL_BREEDS.find((breed) => breed.name.toLowerCase() === breedIn);

if (breedEntry !== undefined) {
searchCom = '&breed_ids=' + breedEntry.id;
Expand Down

0 comments on commit 3195d56

Please sign in to comment.