Skip to content

Commit 37b8635

Browse files
author
Tamara Vukovic
committed
Remove duplicated code
ISSUE: LIS-72
1 parent ab92a20 commit 37b8635

File tree

3 files changed

+284
-32
lines changed

3 files changed

+284
-32
lines changed

dist/resources/js/TranslationService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if (!window.SequraFE) {
3535
* @returns {null|string}
3636
*/
3737
const getTranslation = (type, group, key) => {
38-
if (SequraFE.translations[type][group] && SequraFE.translations[type][group]) {
38+
if (SequraFE.translations[type][group]) {
3939
let value = SequraFE.translations[type][group];
4040
if (Array.isArray(key)) {
4141
return key.reduce((value, key) => {

0 commit comments

Comments
 (0)