Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Do not render icon of action button if icon is not set. Closes #2203 #2202

Gabe Kangas9e6f5a85f8b8
diff --git a/web/components/action-buttons/ActionButton/ActionButton.tsx b/web/components/action-buttons/ActionButton/ActionButton.tsx
index 48b5585e5b..abdf06a078 100644
--- a/web/components/action-buttons/ActionButton/ActionButton.tsx
+++ b/web/components/action-buttons/ActionButton/ActionButton.tsx
@@ -31,7 +31,7 @@ export const ActionButton: FC<ActionButtonProps> = ({
onClick={onButtonClicked}
style={{ backgroundColor: color }}
>
- <img src={icon} className={`${styles.icon}`} alt={description} />
+ {icon && <img src={icon} className={`${styles.icon}`} alt={description} />}
{title}
</Button>
<Modal