Commit 8d74dfd2 authored by Nikolai R Kristiansen's avatar Nikolai R Kristiansen

馃悰 Oops

parent 2bf761d4
Pipeline #710 failed with stage
in 1 minute and 45 seconds
......@@ -45,7 +45,7 @@ class ProofContainer extends Component {
const { user, fetchUser } = this.props;
const todaysDate = new Date().toISOString().substring(0, 10);
const lastMembership = user.last_membership;
if (lastMembership && lastMembership.membership_type !== 'lifelong' && lastMembership.end_date > todaysDate) {
if (lastMembership && lastMembership.membership_type !== 'lifelong' && lastMembership.end_date < todaysDate) {
fetchUser();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment