mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
chore(dependency): Upgrade lodash from v2 to v3
This commit is contained in:
@@ -37,7 +37,7 @@ function t (stringName) {
|
||||
|
||||
if (string) {
|
||||
try {
|
||||
return _.template(string, clonedVars);
|
||||
return _.template(string)(clonedVars);
|
||||
} catch (_error) {
|
||||
return 'Error processing the string. Please see Help > Report a Bug.';
|
||||
}
|
||||
@@ -51,7 +51,7 @@ function t (stringName) {
|
||||
}
|
||||
|
||||
try {
|
||||
return _.template(stringNotFound, {
|
||||
return _.template(stringNotFound)({
|
||||
string: stringName,
|
||||
});
|
||||
} catch (_error) {
|
||||
|
||||
Reference in New Issue
Block a user