mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
fix exports
This commit is contained in:
@@ -9,7 +9,7 @@ import moment from 'moment';
|
||||
|
||||
const tasksTypes = ['habit', 'daily', 'todo', 'reward'];
|
||||
|
||||
module.exports = function taskDefaults (task, user) {
|
||||
export default function taskDefaults (task, user) {
|
||||
if (!task.type || tasksTypes.indexOf(task.type) === -1) {
|
||||
task.type = 'habit';
|
||||
}
|
||||
@@ -97,4 +97,4 @@ module.exports = function taskDefaults (task, user) {
|
||||
}
|
||||
|
||||
return task;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user