Skip to content

Commit

Permalink
Merge pull request #99 from hellomuthu23/remove-cards
Browse files Browse the repository at this point in the history
Remove default cards from custom cards
  • Loading branch information
hellomuthu23 authored Jun 22, 2024
2 parents f97646d + d27d3fa commit d149737
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/components/Players/CardPicker/CardConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ export const getCustomCards = (values: string[]) => {
{ value: 7, displayValue: values[7], color: '#F4DD94' },
{ value: 8, displayValue: values[8], color: '#F4DD94' },
{ value: 9, displayValue: values[9], color: '#F39893' },
{ value: -2, displayValue: '❓', color: 'var(--color-background-secondary)' },
{ value: -1, displayValue: '-1', color: 'var(--color-background-secondary)' },
];
return customCards.filter(
(card) => card.displayValue !== undefined && card.displayValue.trim() !== '',
Expand Down
2 changes: 0 additions & 2 deletions src/components/Poker/CreateGame/CreateGame.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,6 @@ describe('CreateGame component', () => {
cards: [
{ color: '#9EC8FE', displayValue: '1', value: 1 },
{ color: '#9EC8FE', displayValue: '2', value: 2 },
{ color: 'var(--color-background-secondary)', displayValue: '❓', value: -2 },
{ color: 'var(--color-background-secondary)', displayValue: '-1', value: -1 },
],
}),
);
Expand Down

0 comments on commit d149737

Please sign in to comment.