Skip to content

Commit

Permalink
make url case-insensitive for id loading. thanks google.
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Jun 26, 2024
1 parent 1b6c654 commit 3c5a31f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/cards.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ export class CardsService {

public getCardById(id: string): ICard | undefined {
return this.cards.find(
(c) => c.id === id && c.locale === this.localeService.currentLocale()
(c) =>
c.id.toLowerCase() === id.toLowerCase() &&
c.locale === this.localeService.currentLocale()
);
}

Expand Down

0 comments on commit 3c5a31f

Please sign in to comment.