Skip to content

Commit

Permalink
fix config for local and heroku impoementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyjandrews committed Feb 25, 2020
1 parent 422a63e commit 079fa9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ setInterval(() => {
});
}, 10000);

const translate = new Translate();
const translate = config ? new Translate(config) : new Translate();

function translateText(params, translateTo = 'en') {
const target = translateTo;
Expand Down

0 comments on commit 079fa9a

Please sign in to comment.