0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed incorrect existing product check in modal

refs https://github.com/TryGhost/Team/issues/715
This commit is contained in:
Rishabh 2021-06-04 16:55:10 +05:30
parent db1cc85882
commit 25a1e52391

View file

@ -60,7 +60,7 @@ export default class ModalProductPrice extends ModalBase {
}
get isExistingProduct() {
return !!this.model.product;
return !this.model.product.isNew;
}
// TODO: rename to confirm() when modals have full Glimmer support