Skip to content

Commit

Permalink
Make audit fields optional
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol authored and abdrasulov committed Apr 25, 2024
1 parent c83a08e commit 992c72a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ dependencies {
implementation 'com.github.horizontalsystems:ethereum-kit-android:f4957a9'
implementation 'com.github.horizontalsystems:blockchain-fee-rate-kit-android:1d3bd49'
implementation 'com.github.horizontalsystems:binance-chain-kit-android:c1509a2'
implementation 'com.github.horizontalsystems:market-kit-android:30dd1a9'
implementation 'com.github.horizontalsystems:market-kit-android:7b14372'
implementation 'com.github.horizontalsystems:solana-kit-android:d8bb9f2'
implementation 'com.github.horizontalsystems:tron-kit-android:dc3dca7'
// Zcash SDK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ object CoinAuditsModule {

@Parcelize
data class AuditParcelable(
val date: String,
val name: String,
val auditUrl: String,
val date: String?,
val name: String?,
val auditUrl: String?,
val techIssues: Int,
val partnerName: String
val partnerName: String?
) : Parcelable
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ class CoinAuditsViewModel(
groupedByAuditor.forEach { (auditor, reports) ->
auditorViewItems.add(
AuditorViewItem(
name = auditor,
logoUrl = logoUrl(auditor),
name = auditor ?: "",
logoUrl = auditor?.let { logoUrl(it) } ?: "",
auditViewItems = reports.map { report ->
AuditViewItem(
date = formatter.parse(report.date)?.let { date ->
date = report.date?.let { formatter.parse(it) }?.let { date ->
DateHelper.formatDate(date, "MMM dd, yyyy")
},
name = report.name,
name = report.name ?: "",
issues = TranslatableString.ResString(
R.string.CoinPage_Audits_Issues,
report.techIssues
Expand Down

0 comments on commit 992c72a

Please sign in to comment.