From ab8ae9db259db778580cc56fe2de1cae07d29493 Mon Sep 17 00:00:00 2001 From: Struck713 Date: Sat, 9 Mar 2024 03:43:55 -0500 Subject: [PATCH] Don't show buttons if user has no submitted application --- staff-frontend/pages/users.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/staff-frontend/pages/users.jsx b/staff-frontend/pages/users.jsx index 731a6c7..282d834 100644 --- a/staff-frontend/pages/users.jsx +++ b/staff-frontend/pages/users.jsx @@ -40,7 +40,9 @@ export default function UsersManager() { const getActions = (user) => { const checkedIn = user.checkedIn; - const actions = []; + const actions = []; + if (user.submittedApplication) + actions.push(); if (user.applicationApproved) actions.push() return actions;