Skip to content

Commit

Permalink
Merge pull request brave#13267 from ryanml/decimal-publisher-fix
Browse files Browse the repository at this point in the history
Ensuring that pinned publishers are not unpinned when decimal values are entered for the pin percentage
  • Loading branch information
NejcZdovc authored Feb 23, 2018
2 parents b75cad9 + 60ae3f8 commit a2b0f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/renderer/components/preferences/payment/pinnedInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PinnedInput extends ImmutableComponent {
pinPercentage (hostPattern, event) {
let value = parseInt(event.target.value)

if (value < 1) {
if (value < 1 || !value) {
value = 1
this.textInput.value = 1
}
Expand Down

0 comments on commit a2b0f91

Please sign in to comment.