Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
fix: set skippedSentences to empty array in case it's not yet persist…
Browse files Browse the repository at this point in the history
…ed in the redux localStorage item
  • Loading branch information
MichaelKohler committed Jun 27, 2021
1 parent 279a8a5 commit d9307e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/containers/review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function Review({ match, history }: Props) {
const {
sentencesLoading,
sentences,
skippedSentences,
skippedSentences = [],
reviewMessage,
} = useSelector((state: RootState) => state.sentences);
const { useSwipeReview } = useSelector((state: RootState) => state.settings);
Expand Down

0 comments on commit d9307e0

Please sign in to comment.