diff --git a/src/pages/HackathonSelection.jsx b/src/pages/HackathonSelection.jsx index 10abb75c..5a0e8adc 100644 --- a/src/pages/HackathonSelection.jsx +++ b/src/pages/HackathonSelection.jsx @@ -13,7 +13,7 @@ import nwplus_icon from '../assets/nwplus_icon.svg' import HackathonCard from '../components/HackathonCard' // one of 'HackCamp', 'nwHacks', 'cmd-f', or null (when we're done for the year) -const UP_NEXT_HACKATHON_NAME = 'HackCamp' +const UP_NEXT_HACKATHON_NAME = 'nwHacks' const HackathonSelectionContainer = styled.div` display: flex; diff --git a/src/utility/HackerApplicationContext.jsx b/src/utility/HackerApplicationContext.jsx index ad9883ca..d4e05a78 100644 --- a/src/utility/HackerApplicationContext.jsx +++ b/src/utility/HackerApplicationContext.jsx @@ -211,7 +211,9 @@ export function HackerApplicationProvider({ children }) { return null } - if (!applicationOpen && !window.location.pathname.endsWith('/application')) { + const canViewApplication = + applicationOpen || window.location.pathname.endsWith('/application') || user?.admin + if (!canViewApplication) { return }