Skip to content

Commit 2e105e6

Browse files
committed
Fix #3256
1 parent 7b1cbe0 commit 2e105e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/DuesTransactionController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function store(StoreDuesTransactionRequest $request): JsonResponse
155155
// If there's an existing active transaction that hasn't been paid, delete it
156156
// and replace it with the one currently being requested
157157
if ($user->dues->count() > 0) {
158-
$existingTransaction = $user->dues->last();
158+
$existingTransaction = $user->dues()->last();
159159
$pkgIsActive = $existingTransaction->package->is_active;
160160
if ($pkgIsActive) {
161161
$hasPayment = $existingTransaction->payment()->exists();

0 commit comments

Comments
 (0)