🎨 feat(profile): update payment logic to retrieve payments for current year when paid

This commit is contained in:
fsociety
2024-10-24 16:40:15 +02:00
parent 6eaba91e9e
commit ddb13f81b1

View File

@@ -131,6 +131,12 @@ $listenForPayment = function () {
$this->currentYearIsPaid = true;
}
}
if ($paymentEvent->paid) {
$this->currentYearIsPaid = true;
$this->payments = $this->currentPleb
->paymentEvents()
->get();
}
};
$save = function ($type) {