Skip to content

Commit

Permalink
[xprototype#4/fix] Fix uncaught string method usage
Browse files Browse the repository at this point in the history
  • Loading branch information
wilcorrea committed Mar 29, 2019
1 parent c9a2a42 commit 6a46053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/Util/Lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const lang = (key, fallback = '') => {
continue
}

let clean = key[path].replace(/\//g, '.')
let clean = String(key[path]).replace(/\//g, '.')
if (!window.app.i18n.te(clean)) {
continue
}
Expand Down

0 comments on commit 6a46053

Please sign in to comment.