Merge pull request 'je ne galère presque pas non ..' (#12) from color into master

Reviewed-on: #12
This commit is contained in:
Esenjin_Asakha 2024-02-03 11:49:58 +00:00
commit 0955e2cfc3

View File

@ -167,8 +167,9 @@ const defaultButtons = {
// Assign default values if translations are not present // Assign default values if translations are not present
Object.keys(defaultButtons).forEach(key => { Object.keys(defaultButtons).forEach(key => {
translations.composer[key + "_title"] = settings[key] ? settings[key].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 : defaultButtons[key]; translations.composer[key + "_text"] = settings[key + "_text"] && settings[key + "_text"].default ? settings[key + "_text"].default : defaultButtons[key];
}); });
</script> </script>