Skip to content

Commit e5b2a01

Browse files
committed
Update AnimatedHoverTextButton.tsx
1 parent eabdccd commit e5b2a01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Helper/AnimatedHoverTextButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const AnimatedHoverTextButton = ({ id, text, icon, onClick, large = false
4242
return (
4343
<Link
4444
id={id}
45-
className={cx(styles.link, styles[getClassNameForOverallStatus(text as ReadyStatus)])}
45+
className={cx(styles.link, styles[getClassNameForOverallStatus(text ? (text as ReadyStatus) : undefined)])}
4646
onClick={onClick}
4747
onMouseLeave={() => setHover(false)}
4848
onMouseOver={() => setHover(true)}

0 commit comments

Comments
 (0)