diff --git a/src/components/Dashboard/Dashboard.jsx b/src/components/Dashboard/Dashboard.jsx index 24f6f3d2d..d4a9b3e82 100644 --- a/src/components/Dashboard/Dashboard.jsx +++ b/src/components/Dashboard/Dashboard.jsx @@ -47,11 +47,11 @@ class Dashboard extends Component { } else { if (data) { delete data.auth; - if (defaults.autocheckin && defaults.dayof && !data["check-in"]) { + if (defaults.autocheckin && defaults.dayof && !data["check-in-after"]) { // Auto checkin the user this.props.profile.Set( { - "check-in": true + "check-in-after": true }, () => { this.setState({ @@ -108,7 +108,7 @@ class Dashboard extends Component { user.how_you_heard_about_hackru = user.how_you_heard_about_hackru || ""; user.reasons = user.reasons || ""; // boolean to show the other stuff - let SHOW_FLAG = defaults.dayof && user["check-in"] && (user["registration_status"] === "confirmed"); + let SHOW_FLAG = defaults.dayof && (user["check-in-after"] || user["check-in"]) && (user["registration_status"] === "confirmed"); // let mobile = this.props.isMobile; let rolesString = ""; Object.keys(user.role).forEach((key) => { if (user.role[key]) { rolesString += `${key}, `; }}); diff --git a/src/components/Profile.js b/src/components/Profile.js index b905c4a77..05d63d924 100644 --- a/src/components/Profile.js +++ b/src/components/Profile.js @@ -199,7 +199,7 @@ class Profile { // Auto checkin the user this.Set( { - "check-in": true + "check-in-after": true }, callback );