mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-04-22 19:02:10 +00:00
fix: incorrect set being reconized (#180)
* fix: set fetching name not stricly checking Signed-off-by: Avior <github@avior.me> * fix: finding card by set not testing set name Signed-off-by: Avior <github@avior.me> * fix: incorrect set being reconized Signed-off-by: Avior <github@avior.me>
This commit is contained in:
parent
d81275b679
commit
afe33f4b3c
@ -84,7 +84,7 @@ export default class Card implements LocalCard {
|
|||||||
if (key === 'set' && typeof it === 'string') {
|
if (key === 'set' && typeof it === 'string') {
|
||||||
return (
|
return (
|
||||||
c['set'].id.toLowerCase().includes(it.toLowerCase()) ||
|
c['set'].id.toLowerCase().includes(it.toLowerCase()) ||
|
||||||
c['set'].name?.toLowerCase()?.includes(it.toLowerCase())
|
(c['set'].name ? c['set'].name.toLowerCase().includes(it.toLowerCase()) : false)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if (typeof it === "string") {
|
if (typeof it === "string") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user