From fb30b6e92ba47832917731ebbeb049df8fb130d8 Mon Sep 17 00:00:00 2001 From: blake Date: Fri, 30 Oct 2026 16:52:34 -0500 Subject: [PATCH] refactor: simplify party handling in ManagePage component Updated the ManagePage component to streamline the handling of party-related props. Introduced a local variable for party to reduce redundancy and improve code readability. Adjusted references throughout the component to utilize the new variable, ensuring consistent behavior and clearer logic. --- src/pages.tsx | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/pages.tsx b/src/pages.tsx index 8092e0f..b81a47e 100644 --- a/src/pages.tsx +++ b/src/pages.tsx @@ -375,6 +375,7 @@ export function ManagePage(props: { note?: string; }) { const signup = props.signup; + const party = props.party; const cancelled = signup.status !== 'confirmed'; return (
@@ -434,22 +435,22 @@ export function ManagePage(props: { ) : null} - {props.party || props.switches ? ( + {party || props.switches ? (
- {props.party ? ( -
- + {party ? ( + +