mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 21:03:29 +03:00
Fixed add price not erroring on empty amount
refs https://github.com/TryGhost/Team/issues/641 Updated error handling for empty amount on price modal
This commit is contained in:
parent
d3ac517056
commit
2862d68f99
@ -107,7 +107,7 @@ export default class ModalProductPrice extends ModalBase {
|
|||||||
message: 'Please enter name'
|
message: 'Please enter name'
|
||||||
}]);
|
}]);
|
||||||
}
|
}
|
||||||
if (isNaN(this.price.amount)) {
|
if (isNaN(this.price.amount) || this.price.amount === '') {
|
||||||
this.errors.set('amount', [{
|
this.errors.set('amount', [{
|
||||||
message: 'Please enter amount'
|
message: 'Please enter amount'
|
||||||
}]);
|
}]);
|
||||||
|
Loading…
Reference in New Issue
Block a user