Skip to content

Commit

Permalink
Fix JSON codec
Browse files Browse the repository at this point in the history
  • Loading branch information
epifab committed Feb 7, 2024
1 parent 0dfa2fb commit 80e00a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object Seat:
given [C <: CardView: Decoder]: Decoder[Seat[C]] = Decoder.instance { cursor =>
for
emptySeat <- deriveDecoder[EmptySeat[C]].tryDecode(cursor)
player <- cursor.downField("player").as[Option[PlayerState]]
player <- cursor.downField("occupant").as[Option[PlayerState]]
yield player.fold(emptySeat)(emptySeat.occupiedBy)
}

Expand Down

0 comments on commit 80e00a5

Please sign in to comment.