Skip to content

Commit a1bac93

Browse files
committed
fix(pools): show resolution info when non-hosted pool is resolved
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent e0bac7b commit a1bac93

File tree

1 file changed

+4
-1
lines changed
  • apps/flipcash/features/pools/src/main/kotlin/com/flipcash/app/pools/internal/betting/components

1 file changed

+4
-1
lines changed

apps/flipcash/features/pools/src/main/kotlin/com/flipcash/app/pools/internal/betting/components/ResolutionInfo.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ import com.getcode.theme.CodeTheme
2323
internal fun ResolutionInfo(state: PoolBettingViewModel.State, modifier: Modifier = Modifier) {
2424
Box(modifier = modifier, contentAlignment = Alignment.Center) {
2525
AnimatedVisibility(
26-
visible = state.isResolved && state.isDistributed == true,
26+
visible = when {
27+
state.isHost -> state.isResolved && state.isDistributed == true
28+
else -> state.isResolved
29+
},
2730
enter = fadeIn(),
2831
exit = fadeOut()
2932
) {

0 commit comments

Comments
 (0)