Skip to content

Commit

Permalink
Fixes Issue brave#12001, publisher does not unpin when pinPercentage …
Browse files Browse the repository at this point in the history
…is set to less than 0
  • Loading branch information
ryanml committed Feb 27, 2018
1 parent 7623a9a commit a2f6905
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 a2f6905

Please sign in to comment.