Skip to content

Commit dec705a

Browse files
authored
Fix for issue #27
Fix to hopefully make detectPotentialLabPayment work properly. #27
1 parent a1f69cc commit dec705a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rules.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const detectPotentialLabPayment = (member) => {
1313
const now = new Date();
1414
// If member, and membership is has not just expired (or is about to) (roughly 2 month in both directions)
1515
if (member.member && Math.abs(member.member-now) > 5000000000) {
16-
true;
16+
return true;
1717
}
1818
return false;
1919
};
@@ -146,4 +146,4 @@ export const reminderState = (obj) => {
146146
date: obj.reminder,
147147
formatted: moment(obj.reminder).format("YYYY-MM-DD")
148148
};
149-
};
149+
};

0 commit comments

Comments
 (0)