From ddb13f81b1e820366e89a5c0655c2d50d2f36ba0 Mon Sep 17 00:00:00 2001 From: fsociety Date: Thu, 24 Oct 2024 16:40:15 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20feat(profile):=20update=20paymen?= =?UTF-8?q?t=20logic=20to=20retrieve=20payments=20for=20current=20year=20w?= =?UTF-8?q?hen=20paid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/pages/association/profile.blade.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/views/pages/association/profile.blade.php b/resources/views/pages/association/profile.blade.php index bd13301..89715fa 100644 --- a/resources/views/pages/association/profile.blade.php +++ b/resources/views/pages/association/profile.blade.php @@ -131,6 +131,12 @@ $listenForPayment = function () { $this->currentYearIsPaid = true; } } + if ($paymentEvent->paid) { + $this->currentYearIsPaid = true; + $this->payments = $this->currentPleb + ->paymentEvents() + ->get(); + } }; $save = function ($type) {