Skip to content

Commit

Permalink
fix search query equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
ndepaola committed Jan 13, 2024
1 parent 180a4da commit f770cbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/features/card/cardSlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ export function CardSlot({ searchQuery, face, slot }: CardSlotProps) {
selectedSlots.length > 1 &&
projectMember?.selected &&
selectedQuery != null &&
selectedQuery === searchQuery;
// can't use object equality check here
selectedQuery.query === searchQuery?.query &&
selectedQuery.card_type === searchQuery?.card_type;
const slotsToModify: Array<[Faces, number]> = modifySelectedSlots
? selectedSlots
: [[face, slot]];
Expand Down

0 comments on commit f770cbd

Please sign in to comment.