Skip to content

Commit

Permalink
fix: GetE2EICertificate button when no certificate (#3002)
Browse files Browse the repository at this point in the history
  • Loading branch information
borichellow authored and github-actions[bot] committed May 14, 2024
1 parent 163d5ab commit f6287df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import kotlinx.datetime.Instant
@Composable
fun EndToEndIdentityCertificateItem(
isE2eiCertificateActivated: Boolean,
certificate: E2eiCertificate,
certificate: E2eiCertificate?,
isCurrentDevice: Boolean,
isLoadingCertificate: Boolean,
enrollE2eiCertificate: () -> Unit,
Expand Down Expand Up @@ -77,7 +77,7 @@ fun EndToEndIdentityCertificateItem(
color = MaterialTheme.wireColorScheme.secondaryText,
)
Column {
if (isE2eiCertificateActivated) {
if (isE2eiCertificateActivated && certificate != null) {
when (certificate.status) {
CertificateStatus.REVOKED -> {
E2EIStatusRow(
Expand Down

0 comments on commit f6287df

Please sign in to comment.