aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-11-24 11:55:25 -0500
committerGitHub <noreply@github.com>2020-11-24 11:55:25 -0500
commit496af0b5f276e310f3a33bc47d55ede8e6bfb732 (patch)
tree5157e03deadf359aa9d5d2e0f17c21de268c8c3c
parentde299c64ae0d32f316d1679b79dd1ad72e1c0ed9 (diff)
Fix incorrect frequency field being used (#1059)
-rw-r--r--ext/bg/js/translator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index d582f25f..45d7f17a 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -807,7 +807,7 @@ class Translator {
let frequency = data;
if (data !== null && typeof data === 'object') {
if (data.reading !== reading) { return null; }
- frequency = data.frequency2;
+ frequency = data.frequency;
}
return {expression, reading, dictionary, frequency};
}