Skip to content

Commit

Permalink
Change the way the component name is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
eurunuela committed Feb 16, 2022
1 parent 9257049 commit 92f3c29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plots/Plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;

Expand Down Expand Up @@ -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`;

Expand Down

0 comments on commit 92f3c29

Please sign in to comment.