From 419fe102f898cb546ef00ef7029f02831b5e5b86 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sat, 28 Mar 2020 16:30:15 +0100 Subject: Fix table updates --- sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/Reducers.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'sw-ui-kt/src/main/kotlin') diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/Reducers.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/Reducers.kt index dd6dea98..28bb7993 100644 --- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/Reducers.kt +++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/Reducers.kt @@ -54,6 +54,7 @@ private fun currentLobbyReducer(currentLobbyId: Long?, action: RAction): Long? = private fun currentTurnInfoReducer(currentTurnInfo: PlayerTurnInfo?, action: RAction): PlayerTurnInfo? = when (action) { is TurnInfoEvent -> action.turnInfo + is TableUpdateEvent -> null else -> currentTurnInfo } -- cgit