Skip to content

Commit

Permalink
use uppercase when compare
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Nov 14, 2024
1 parent 9fb63c5 commit 8fbb0db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/atoms/AtomsViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,9 @@ class AtomsViewer {
if (newValue === "None") {
// Remove labels
this.ALManager.settings = [];
} else if (newValue === "Symbol") {
} else if (newValue.toUpperCase() === "SYMBOL") {
this.ALManager.settings = [{ origins: "positions", texts: "symbols" }];
} else if (newValue === "Index") {
} else if (newValue.toLocaleUpperCase() === "INDEX") {
this.ALManager.settings = [{ origins: "positions", texts: "index" }];
}
this.ALManager.drawAtomLabels();
Expand Down

0 comments on commit 8fbb0db

Please sign in to comment.