Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Patric Gutersohn committed Apr 6, 2020
1 parent 3a9cc59 commit 0e0cd9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
class="circle-default-style"
data-percent="90"
data-no-percentage-sign="true"
data-animation="false"
data-stroke-linecap="round">
</div>
<div id="circle5" class="circle-default-style"></div>
Expand Down
2 changes: 1 addition & 1 deletion src/base-classes/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Options {
const value = circleContainer.dataset[key];

if (value === "false" || value === "true") {
dataOptions[key] = Boolean(value);
dataOptions[key] = value === "true";
} else if (Number(value)) {
dataOptions[key] = Number(value);
} else {
Expand Down

0 comments on commit 0e0cd9e

Please sign in to comment.