Skip to content

Commit

Permalink
Fix #3256
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Jan 11, 2023
1 parent 7b1cbe0 commit 2e105e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/DuesTransactionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function store(StoreDuesTransactionRequest $request): JsonResponse
// If there's an existing active transaction that hasn't been paid, delete it
// and replace it with the one currently being requested
if ($user->dues->count() > 0) {
$existingTransaction = $user->dues->last();
$existingTransaction = $user->dues()->last();
$pkgIsActive = $existingTransaction->package->is_active;
if ($pkgIsActive) {
$hasPayment = $existingTransaction->payment()->exists();
Expand Down

0 comments on commit 2e105e6

Please sign in to comment.