From f68785fa3a34a32f289307e361e5dd6271177355 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 27 Jan 2023 23:08:46 -0800 Subject: [PATCH] Add shortcode to party state object --- components/Party/index.tsx | 1 + utils/appState.tsx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/components/Party/index.tsx b/components/Party/index.tsx index f3fb8249..4cf40ba7 100644 --- a/components/Party/index.tsx +++ b/components/Party/index.tsx @@ -150,6 +150,7 @@ const Party = (props: Props) => { appState.party.accessory = team.accessory appState.party.id = team.id + appState.party.shortcode = team.shortcode appState.party.extra = team.extra appState.party.user = team.user appState.party.favorited = team.favorited diff --git a/utils/appState.tsx b/utils/appState.tsx index 61380ddd..4caac7f1 100644 --- a/utils/appState.tsx +++ b/utils/appState.tsx @@ -36,6 +36,7 @@ interface AppState { party: { id: string | undefined + shortcode: string | undefined editable: boolean detailsVisible: boolean name: string | undefined @@ -87,6 +88,7 @@ interface AppState { export const initialAppState: AppState = { party: { id: undefined, + shortcode: '', editable: false, detailsVisible: false, name: undefined,