Skip to content

Commit

Permalink
fix(selectablecard): selected props has default value to false
Browse files Browse the repository at this point in the history
  • Loading branch information
Mousticke committed Jul 23, 2022
1 parent c635f75 commit 0077cda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SelectableCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface IProps {
className?: string
onSelect: (val: string) => void
value: string
isSelected: boolean
isSelected?: boolean
}

const Card: React.FC<IProps> = ({
Expand All @@ -45,7 +45,7 @@ const Card: React.FC<IProps> = ({
className,
onSelect,
value,
isSelected,
isSelected = false,
}) => {
const handleSelect = () => {
onSelect(value)
Expand Down

0 comments on commit 0077cda

Please sign in to comment.