Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Kelp UI: hasNewLevels should use numerical check for amount
Browse files Browse the repository at this point in the history
addresses part of issue #67
  • Loading branch information
nikhilsaraf committed Jun 27, 2019
1 parent 91718af commit 4759428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/web/src/components/molecules/Form/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Form extends Component {
}

let lastLevel = levels[levels.length - 1];
if (+lastLevel["spread"] === 0 || +lastLevel["amount"] === "0") {
if (+lastLevel["spread"] === 0 || +lastLevel["amount"] === 0) {
return true;
}

Expand Down

0 comments on commit 4759428

Please sign in to comment.