diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 1422bb5..d493472 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -8,7 +8,7 @@ export interface IButtonProps extends React.DetailedHTMLProps = (props) => { const { children, backgroundColor, color, style } = props; - let _style = style; + let _style: React.CSSProperties = style || {}; /** Override Defaults */ if (backgroundColor && _style) _style.backgroundColor = backgroundColor;