Skip to content

Commit 1609871

Browse files
author
Kubit
committed
Fix bug when Loading is an JSX.Element
1 parent 9ec9cd2 commit 1609871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/button/buttonStandAlone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const ButtonStandAloneStructure = (props: IButtonStandAlone): JSX.Element
1515

1616
return (
1717
<>
18-
{props.loader && (
18+
{props.loader && props.loading && (
1919
<>
2020
{typeof props.loader === 'object' && 'variant' in props.loader ? (
2121
<ButtonLoaderStyled>

0 commit comments

Comments
 (0)