Fix incorrect frequency field being used (#1059)

This commit is contained in:
toasted-nutbread 2020-11-24 11:55:25 -05:00 committed by GitHub
parent de299c64ae
commit 496af0b5f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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};
}