mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Fixed text of check-in prize when it is a set of backgrounds (#8599)
* Fixed text of check-in prize when it is a set of backgrounds * Use existing i18n string for BGs name * Added user.preferences.language as second parameter
This commit is contained in:
@@ -15,6 +15,7 @@ module.exports = function getLoginIncentives (api) {
|
||||
2: {
|
||||
rewardKey: ['background_purple'],
|
||||
reward: [api.backgrounds.incentiveBackgrounds],
|
||||
rewardName: 'incentiveBackgrounds', // i18n string
|
||||
assignReward: function assignReward (user) {
|
||||
user.purchased.background.blue = true;
|
||||
user.purchased.background.green = true;
|
||||
|
||||
Reference in New Issue
Block a user