diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-05-01 10:53:12 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-05-01 10:53:19 +0800 |
commit | 12cfe8e543ebc0982f6dc087d28c7d56888ed666 (patch) | |
tree | 9b1fbd564dc4f334a1550eba63321a99794fde0f /ui | |
parent | c7492f4f54acdab3b763b273481406c885199369 (diff) | |
download | tangerine-wallet-browser-12cfe8e543ebc0982f6dc087d28c7d56888ed666.tar tangerine-wallet-browser-12cfe8e543ebc0982f6dc087d28c7d56888ed666.tar.gz tangerine-wallet-browser-12cfe8e543ebc0982f6dc087d28c7d56888ed666.tar.bz2 tangerine-wallet-browser-12cfe8e543ebc0982f6dc087d28c7d56888ed666.tar.lz tangerine-wallet-browser-12cfe8e543ebc0982f6dc087d28c7d56888ed666.tar.xz tangerine-wallet-browser-12cfe8e543ebc0982f6dc087d28c7d56888ed666.tar.zst tangerine-wallet-browser-12cfe8e543ebc0982f6dc087d28c7d56888ed666.zip |
Fix binding of this for I18nProvider#tOrKey
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/helpers/higher-order-components/i18n-provider.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/helpers/higher-order-components/i18n-provider.js b/ui/app/helpers/higher-order-components/i18n-provider.js index 0e34e17e0..298a12a28 100644 --- a/ui/app/helpers/higher-order-components/i18n-provider.js +++ b/ui/app/helpers/higher-order-components/i18n-provider.js @@ -19,7 +19,7 @@ class I18nProvider extends Component { return t(current, key, ...args) || t(en, key, ...args) || `[${key}]` }, tOrDefault: this.tOrDefault, - tOrKey (key, ...args) { + tOrKey: (key, ...args) => { return this.tOrDefault(key, key, ...args) }, } |