Skip to content

Commit

Permalink
Merge pull request #108 from BouyguesTelecom/fix/components
Browse files Browse the repository at this point in the history
Fix components
  • Loading branch information
JulienMora authored Aug 21, 2024
2 parents 1c33bb6 + 12eff81 commit 1c10772
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react/components/card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ const Card = ({
data-testid={testId}
onClick={onClick && onClick}
className={classes}
{...others}
style={onClick && { ...hoverStyle }}
{...others}
/>
)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react/components/stepper/Stepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Stepper = ({
if (Array.isArray(children)) {
let haveCurrentStep = false
children.map((child) => {
if (child.props.current) {
if (child?.props?.current) {
haveCurrentStep = true
setCurrentStep(child.props.step)
}
Expand Down

0 comments on commit 1c10772

Please sign in to comment.