Skip to content

Commit

Permalink
Fix bug in parseWord (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephGaynier authored Aug 20, 2020
1 parent 4d1b2b2 commit e2d1248
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,13 @@ function refreshWord(
) => {
const newWordId = await action(oldWordId);
const newWord = await backend.getWord(newWordId);

const analysisLang = getState().currentProject.analysisWritingSystems[0]
? getState().currentProject.analysisWritingSystems[0]
: { name: "English", bcp47: "en", font: "" };

dispatch(
updateWord(oldWordId, newWordId, parseWord(newWord, analysisLang.name))
updateWord(oldWordId, newWordId, parseWord(newWord, analysisLang.bcp47))
);
};
}
Expand Down

0 comments on commit e2d1248

Please sign in to comment.