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, text = title,
) )
}, },
supportingContent = { supportingContent = subtitle?.let {
if (subtitle != null) { {
Text( Text(
style = ElementTheme.typography.fontBodyMdRegular, style = ElementTheme.typography.fontBodyMdRegular,
text = subtitle, text = subtitle,