mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-14 06:36:46 +00:00
🛠️ fix(profile): streamline payment logic in profile view for better readability and efficiency
This commit is contained in:
@@ -125,20 +125,16 @@ $listenForPayment = function () {
|
|||||||
if ($response->json()['status'] === 'Settled') {
|
if ($response->json()['status'] === 'Settled') {
|
||||||
$paymentEvent->paid = true;
|
$paymentEvent->paid = true;
|
||||||
$paymentEvent->save();
|
$paymentEvent->save();
|
||||||
$this->payments = $this->currentPleb
|
|
||||||
->paymentEvents()
|
|
||||||
->where('paid', true)
|
|
||||||
->get();
|
|
||||||
$this->currentYearIsPaid = true;
|
$this->currentYearIsPaid = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($paymentEvent->paid) {
|
if ($paymentEvent->paid) {
|
||||||
$this->currentYearIsPaid = true;
|
$this->currentYearIsPaid = true;
|
||||||
|
}
|
||||||
$this->payments = $this->currentPleb
|
$this->payments = $this->currentPleb
|
||||||
->paymentEvents()
|
->paymentEvents()
|
||||||
->where('paid', true)
|
->where('paid', true)
|
||||||
->get();
|
->get();
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$save = function ($type) {
|
$save = function ($type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user