No Composable if subtitle is null

This commit is contained in:
Benoit Marty
2024-05-27 17:28:17 +02:00
parent 8e1b48d3d5
commit 8339a6f1f3

View File

@@ -59,8 +59,8 @@ fun PreferenceSwitch(
text = title,
)
},
supportingContent = {
if (subtitle != null) {
supportingContent = subtitle?.let {
{
Text(
style = ElementTheme.typography.fontBodyMdRegular,
text = subtitle,