Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #72 from pvdthings/dev
Browse files Browse the repository at this point in the history
Fix: selected loan is incorrect
  • Loading branch information
dillonfagan authored Oct 19, 2023
2 parents 2451e86 + 4c97400 commit 124eeca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/features/loans/providers/loan_details_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ final loanDetailsProvider = Provider<Future<LoanModel?>>((ref) async {
}

final loans = await ref.watch(loansRepositoryProvider);
return loans.firstWhereOrNull((loan) => loan.id == selectedLoan.id);
return loans.firstWhereOrNull((loan) =>
loan.id == selectedLoan.id && loan.thing.id == selectedLoan.thing.id);
});

1 comment on commit 124eeca

@vercel
Copy link

@vercel vercel bot commented on 124eeca Oct 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

librarian-app – ./

librarian-app-pvdthings.vercel.app
librarian-app-git-main-pvdthings.vercel.app
librarian-app.vercel.app

Please sign in to comment.