diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx
index 1c3cded..8ac39ed 100644
--- a/app/dashboard/page.tsx
+++ b/app/dashboard/page.tsx
@@ -390,9 +390,8 @@ export default function Dashboard() {
: 0,
});
- if (data.error != ''){
- alert(data.error.message)
-
+ if (data.error != '') {
+ alert(data.error.message);
}
setUserData(data.response);
@@ -440,6 +439,52 @@ export default function Dashboard() {
} else if (userData?.role['director']) {
return ;
} else if (userData?.role.hacker) {
+ if (userData?.opt_in == null) {
+ return (
+
+
+
+
+
+ Would you like to opt-in to Major League Hacking emails? You
+ must choose before you can proceed.
+
+
+
+
+
+
+
+
+ );
+ }
return (
@@ -471,39 +516,6 @@ export default function Dashboard() {
)}
- {userData?.opt_in == null && (
-
-
- Would you like to opt-in to Major League Hacking emails
-
-
-
-
-
-
- )}
{userData?.registration_status === 'checked_in' && false && (
@@ -692,23 +704,23 @@ export default function Dashboard() {
Links
-
- Links to various things
-
+ Links to various things
-
-
)}
+ (
@@ -726,7 +738,7 @@ export default function Dashboard() {