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,