mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
fix exports
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import moment from 'moment';
|
||||
import { MAX_LEVEL } from '../constants';
|
||||
|
||||
module.exports = function isFreeRebirth (user) {
|
||||
export default function isFreeRebirth (user) {
|
||||
let daysFromLastFreeRebirth = user.flags.lastFreeRebirth;
|
||||
|
||||
if (daysFromLastFreeRebirth) {
|
||||
@@ -11,4 +11,4 @@ module.exports = function isFreeRebirth (user) {
|
||||
}
|
||||
|
||||
return user.stats.lvl >= MAX_LEVEL && daysFromLastFreeRebirth > 45;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user