diff --git a/src/renderer/components/icon/icon.tsx b/src/renderer/components/icon/icon.tsx index afa7b35aa9..48dfb51820 100644 --- a/src/renderer/components/icon/icon.tsx +++ b/src/renderer/components/icon/icon.tsx @@ -114,14 +114,14 @@ export class Icon extends React.PureComponent { }; // render as inline svg-icon - if (svg) { + if (typeof svg === "string") { const svgIconText = svg.includes("; } // render as material-icon - if (material && typeof material === "string") { + if (typeof material === "string") { iconContent = {material}; }