diff --git a/resources/assets/vue/components/bookings/elements/RefundConfirmationComponent.vue b/resources/assets/vue/components/bookings/elements/RefundConfirmationComponent.vue index 34d97d3b..c954a374 100644 --- a/resources/assets/vue/components/bookings/elements/RefundConfirmationComponent.vue +++ b/resources/assets/vue/components/bookings/elements/RefundConfirmationComponent.vue @@ -33,7 +33,6 @@ -
diff --git a/resources/assets/vue/components/companies/forms/SupplierServiceChargeFormComponent.vue b/resources/assets/vue/components/companies/forms/SupplierServiceChargeFormComponent.vue index 74c02a91..4a4bea33 100644 --- a/resources/assets/vue/components/companies/forms/SupplierServiceChargeFormComponent.vue +++ b/resources/assets/vue/components/companies/forms/SupplierServiceChargeFormComponent.vue @@ -74,12 +74,7 @@ }, methods: { submitForm(){ - if (this.defaultCharge == null) { - this.submit(this.route('api.segment_constant.create'), 'post', this.section, true, true); - } - else { - this.submit(this.route('api.segment_constant.update', this.service_charges.id), 'post', this.section, true, true); - } + this.submit(this.defaultCharge ? this.route('api.segment_constant.update', this.service_charges.id) : this.route('api.segment_constant.create'), 'post', this.section, true, true); }, }, mixins: [ModalFormHandler]