diff --git a/resources/assets/vue/components/paymentsBilling/elements/PaymentsBillingComponents.vue b/resources/assets/vue/components/paymentsBilling/elements/PaymentsBillingComponents.vue index ca4c0608..7e9f5f5d 100644 --- a/resources/assets/vue/components/paymentsBilling/elements/PaymentsBillingComponents.vue +++ b/resources/assets/vue/components/paymentsBilling/elements/PaymentsBillingComponents.vue @@ -26,11 +26,11 @@

Payment Date

-
{{ item.payment_history?.[item.payment_history.length - 1]?.created_at || '-' }}
+
{{ item.payment_history && item.payment_history.length > 0 ? item.payment_history[item.payment_history.length - 1].created_at : '-' }}

Bill Number

-
{{ item.payment_history?.[item.payment_history.length-1]?.payment_reference || '-' }}
+
{{ item.payment_history && item.payment_history.length > 0 ? item.payment_history[item.payment_history.length - 1].payment_reference : '-' }}