Skip to content

Commit

Permalink
Merge pull request #903 from tkdgusl94/main
Browse files Browse the repository at this point in the history
fix potential bugs in ifModifier
  • Loading branch information
takahirom authored Oct 12, 2022
2 parents b91cf59 + 35ba035 commit 3529e9f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ package io.github.droidkaigi.confsched2022.ui
import androidx.compose.ui.Modifier

inline fun Modifier.ifTrue(value: Boolean, builder: Modifier.() -> Modifier): Modifier {
return then(if (value) builder() else Modifier)
val modifier = Modifier
return then(if (value) modifier.builder() else modifier)
}

0 comments on commit 3529e9f

Please sign in to comment.