Skip to content

Commit

Permalink
Merge pull request #1751 from Kajabi/DSS-426_pl-radio-custom-slot
Browse files Browse the repository at this point in the history
[DSS-426]: fix(toggle): Add conditional for customContent
  • Loading branch information
pixelflips authored Jun 20, 2023
2 parents c09b52f + 225e53d commit a0126f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/sage-react/lib/Toggle/Toggle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ export const Toggle = ({
{message && (
<div className={`${baseClass}__message`}>{message}</div>
)}
{renderCustomContent()}
{customContent && (
renderCustomContent()
)}
</Tag>
);
};
Expand Down

0 comments on commit a0126f5

Please sign in to comment.