je ne galère presque pas non ..

This commit is contained in:
Esenjin 2024-02-03 12:49:36 +01:00
parent a805ec15d2
commit 99050b86b0

View File

@ -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>