Skip to content

Commit

Permalink
fix: GetE2EICertificate button when no certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
borichellow committed May 14, 2024
1 parent a0fd74f commit 3c21ed9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ fun DeviceDetailsContent(
}
}

if (state.isE2EIEnabled && state.e2eiCertificate != null) {
if (state.isE2EIEnabled) {
item {
EndToEndIdentityCertificateItem(
isE2eiCertificateActivated = state.isE2eiCertificateActivated,
Expand Down
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 3c21ed9

Please sign in to comment.