diff --git a/lib/svg-symbol.tsx b/lib/svg-symbol.tsx
index 35d4ff1..e233a07 100644
--- a/lib/svg-symbol.tsx
+++ b/lib/svg-symbol.tsx
@@ -72,7 +72,7 @@ function reactifySvgSymbolElement(
let vectorEffect;
fill = getColor(ctx, fill);
stroke = getColor(ctx, stroke);
- if (strokeWidth !== undefined && ctx.uniformStrokeWidth) {
+ if (strokeWidth !== undefined && typeof ctx.uniformStrokeWidth === "number") {
strokeWidth = ctx.uniformStrokeWidth;
vectorEffect = "non-scaling-stroke";
}
diff --git a/lib/symbol-context-widget.tsx b/lib/symbol-context-widget.tsx
index a6befb9..ad2a57d 100644
--- a/lib/symbol-context-widget.tsx
+++ b/lib/symbol-context-widget.tsx
@@ -42,7 +42,7 @@ export const SymbolContextWidget: React.FC<{