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

View file

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