Skip to content

Commit

Permalink
Fix #225: For contract type DA allow count first time issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mumthasir mohammed authored and georgepadayatti committed Feb 27, 2024
1 parent f3c5c29 commit 526ad0c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,12 @@ class BBConsentOrganisationViewController: BBConsentBaseViewController {
// If item doesnt have record already
if !idsWithAttributeRecords.contains(item) {
// Create add record api call
callCreateDataAgreementApi(dataAgreementId: item) { _ in }
callCreateDataAgreementApi(dataAgreementId: item) { model in
if let consentRecordModel = model {
self.consentRecordsObj?.consentRecords.append(consentRecordModel)
self.orgTableView.reloadData()
}
}
}
}
}
Expand Down

0 comments on commit 526ad0c

Please sign in to comment.