From 4b225e5c1418d8e0a7ba5720bd8b8c2845964764 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Mon, 24 May 2021 13:07:54 +1000 Subject: [PATCH] Fix fog colour string warning --- src/components/map/MapFog.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/map/MapFog.js b/src/components/map/MapFog.js index 963f677..f1206ac 100644 --- a/src/components/map/MapFog.js +++ b/src/components/map/MapFog.js @@ -496,7 +496,9 @@ function MapFog({ : editOpacity : 1; // Control opacity only on fill as using opacity with stroke leads to performance issues - const fill = new Color(colors[shape.color] || shape.color).alpha(opacity); + const fill = new Color(colors[shape.color] || shape.color) + .alpha(opacity) + .string(); const stroke = editable && active ? colors.lightGray