From 92f3c2918c257ce4ba790371b1fd938cc78bb102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eneko=20Uru=C3=B1uela?= Date: Wed, 16 Feb 2022 17:04:25 +0100 Subject: [PATCH] Change the way the component name is updated --- src/Plots/Plots.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plots/Plots.js b/src/Plots/Plots.js index aec34f8..0f3d568 100644 --- a/src/Plots/Plots.js +++ b/src/Plots/Plots.js @@ -184,7 +184,7 @@ class Plots extends React.Component { compName = compName.join(""); // If length of compName is 2, then add a 0 to the beginning if (compName.length === 2) { - compName = `0${compName}`; + compName = "0" + compName; } compName = `comp_${compName}.png`; @@ -234,7 +234,7 @@ class Plots extends React.Component { compName = compName.join(""); // If length of compName is 2, then add a 0 to the beginning if (compName.length === 2) { - compName = `0${compName}`; + compName = "0" + compName; } compName = `comp_${compName}.png`;