Specify radix parameter for parsing amount
This commit is contained in:
@@ -22,7 +22,7 @@ export default Component.extend({
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
isValidAmount: computed('proposal.amount', function() {
|
isValidAmount: computed('proposal.amount', function() {
|
||||||
return parseInt(this.get('proposal.amount')) > 0;
|
return parseInt(this.get('proposal.amount'), 10) > 0;
|
||||||
}),
|
}),
|
||||||
|
|
||||||
isValidUrl: computed('proposal.url', function() {
|
isValidUrl: computed('proposal.url', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user