No Composable if subtitle is null

This commit is contained in:
Benoit Marty
2024-05-27 17:28:17 +02:00
parent cf057310b4
commit ef4cf42b71
@@ -59,8 +59,8 @@ fun PreferenceSwitch(
text = title, text = title,
) )
}, },
supportingContent = { supportingContent = subtitle?.let {
if (subtitle != null) { {
Text( Text(
style = ElementTheme.typography.fontBodyMdRegular, style = ElementTheme.typography.fontBodyMdRegular,
text = subtitle, text = subtitle,