Skip to content

Commit 826aaf4

Browse files
committed
Fix blank invitation dialog content
Previously dialog was never loaded and only progress was shown.
1 parent e913fa8 commit 826aaf4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/src/androidMain/kotlin/cz/frantisekmasa/wfrp_master/common/invitation/InvitationDialogContent.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import androidx.compose.material.icons.rounded.Share
1212
import androidx.compose.runtime.Composable
1313
import androidx.compose.runtime.LaunchedEffect
1414
import androidx.compose.runtime.mutableStateOf
15+
import androidx.compose.runtime.remember
1516
import androidx.compose.ui.Modifier
1617
import androidx.compose.ui.platform.LocalContext
1718
import androidx.compose.ui.text.style.TextAlign
@@ -31,7 +32,7 @@ import kotlinx.coroutines.withContext
3132

3233
@Composable
3334
actual fun InvitationDialogContent(invitation: Invitation, screenModel: InvitationScreenModel) {
34-
val (sharingOptions, setSharingOptions) = mutableStateOf<SharingOptions?>(null)
35+
val (sharingOptions, setSharingOptions) = remember { mutableStateOf<SharingOptions?>(null) }
3536

3637
LaunchedEffect(invitation) {
3738
setSharingOptions(buildSharingOptions(invitation, screenModel))

0 commit comments

Comments
 (0)