Skip to content

Commit

Permalink
QH-10 Remove warning for non-null assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgiu committed Apr 17, 2022
1 parent ec04dd4 commit 774f3d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/NewEditPlayer/NewEditPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function NewEditPlayer(props: NewEditPlayerProps): JSX.Element {
defaultValue={
props.editingPlayer
? JSON.stringify(
playersMap.get!((props.editingPlayer as DbDoublesPair)["player1_id"])
playersMap.get((props.editingPlayer as DbDoublesPair)["player1_id"])
)
: undefined
}
Expand Down Expand Up @@ -232,7 +232,7 @@ function NewEditPlayer(props: NewEditPlayerProps): JSX.Element {
defaultValue={
props.editingPlayer
? JSON.stringify(
playersMap.get!((props.editingPlayer as DbDoublesPair)["player2_id"])
playersMap.get((props.editingPlayer as DbDoublesPair)["player2_id"])
)
: undefined
}
Expand Down

0 comments on commit 774f3d6

Please sign in to comment.