diff --git a/js/lib/Translator.js b/js/lib/Translator.js index 777cc8a67..5f3dfd30d 100644 --- a/js/lib/Translator.js +++ b/js/lib/Translator.js @@ -60,7 +60,7 @@ export default class Translator { // future there should be a hook here to inspect the user and change the // translation key. This will allow a gender property to determine which // translation key is used. - if (input.user instanceof User) { + if ('user' in input) { const user = extract(input, 'user'); if (!input.username) input.username = username(user);