Skip to content

Commit

Permalink
Fix for credit mark_paid action
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Jun 19, 2023
1 parent df5535b commit 6577f37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/data/repositories/credit_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ class CreditRepository {
'${credentials.url}/credits/${credit.id}?include=activities.history';
}

if (action == EntityAction.markSent) {
if (action == EntityAction.markPaid) {
url += '&mark_paid=true';
} else if (action == EntityAction.markSent) {
url += '&mark_sent=true';
}

Expand Down

0 comments on commit 6577f37

Please sign in to comment.