Skip to content

Commit

Permalink
fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Apr 8, 2022
1 parent b672c2f commit 9ccd701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-material/src/Link/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const Link = React.forwardRef(function Link(inProps, ref) {
ownerState={ownerState}
variant={variant}
sx={[
...(!inProps.color && !sxColor ? [{ color: colorTransformations[color] || color }] : []),
...(inProps.color || sxColor ? [{ color: colorTransformations[color] || color }] : []),
...(Array.isArray(sx) ? sx : [sx]),
]}
{...other}
Expand Down

0 comments on commit 9ccd701

Please sign in to comment.