From f0cf09dc316e5e0b8060e95e44837f6cbec5b28a Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 24 Feb 2022 18:14:32 -0800 Subject: [PATCH] Remove user-generated details This goes somewhere else --- components/CharacterGrid/index.tsx | 13 ------------- components/SummonGrid/index.tsx | 13 ------------- components/WeaponGrid/index.tsx | 13 ------------- 3 files changed, 39 deletions(-) diff --git a/components/CharacterGrid/index.tsx b/components/CharacterGrid/index.tsx index e8b63548..4a1eb463 100644 --- a/components/CharacterGrid/index.tsx +++ b/components/CharacterGrid/index.tsx @@ -78,19 +78,6 @@ const CharacterGrid = (props: Props) => { // Store the important party and state-keeping values appState.party.id = party.id - // Store the party's user-generated details - if (party.name) { - appState.party.name = { - en: party.name.en, - jp: party.name.jp - } - } - if (party.description) - appState.party.description = party.description - - if (party.raid) - appState.raid = party.raid - setFound(true) setLoading(false) diff --git a/components/SummonGrid/index.tsx b/components/SummonGrid/index.tsx index 7a5c1437..5f472e31 100644 --- a/components/SummonGrid/index.tsx +++ b/components/SummonGrid/index.tsx @@ -88,19 +88,6 @@ const SummonGrid = (props: Props) => { // Store the important party and state-keeping values appState.party.id = party.id - // Store the party's user-generated details - if (party.name) { - appState.party.name = { - en: party.name.en, - jp: party.name.jp - } - } - if (party.description) - appState.party.description = party.description - - if (party.raid) - appState.raid = party.raid - setFound(true) setLoading(false) diff --git a/components/WeaponGrid/index.tsx b/components/WeaponGrid/index.tsx index 55727517..0be9798a 100644 --- a/components/WeaponGrid/index.tsx +++ b/components/WeaponGrid/index.tsx @@ -85,19 +85,6 @@ const WeaponGrid = (props: Props) => { appState.party.id = party.id appState.party.extra = party.is_extra - // Store the party's user-generated details - if (party.name) { - appState.party.name = { - en: party.name.en, - jp: party.name.jp - } - } - if (party.description) - appState.party.description = party.description - - if (party.raid) - appState.raid = party.raid - setFound(true) setLoading(false)