Compare commits
2 Commits
776f8a2844
...
0955e2cfc3
Author | SHA1 | Date | |
---|---|---|---|
0955e2cfc3 | |||
99050b86b0 |
@ -167,8 +167,9 @@ const defaultButtons = {
|
||||
|
||||
// Assign default values if translations are not present
|
||||
Object.keys(defaultButtons).forEach(key => {
|
||||
translations.composer[key + "_title"] = settings[key] ? settings[key].default : defaultButtons[key];
|
||||
translations.composer[key + "_text"] = settings[key + "_text"] ? settings[key + "_text"].default : defaultButtons[key];
|
||||
translations.composer[key + "_title"] = settings[key] && settings[key].default ? settings[key].default : defaultButtons[key];
|
||||
translations.composer[key + "_text"] = settings[key + "_text"] && settings[key + "_text"].default ? settings[key + "_text"].default : defaultButtons[key];
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user