diff --git a/components/CharacterGrid/index.tsx b/components/CharacterGrid/index.tsx index 17bb23ed..207d1b1d 100644 --- a/components/CharacterGrid/index.tsx +++ b/components/CharacterGrid/index.tsx @@ -167,7 +167,6 @@ const CharacterGrid = (props: Props) => { // Methods: Saving job and job skills const saveJob = function (job: Job) { - console.log("Save job!") if (party.id && appState.party.editable) { api.endpoints.parties.update( party.id, diff --git a/components/JobSection/index.tsx b/components/JobSection/index.tsx index dfb6a7a9..4b5a9ce1 100644 --- a/components/JobSection/index.tsx +++ b/components/JobSection/index.tsx @@ -47,7 +47,6 @@ const JobSection = (props: Props) => { }, [job]) function receiveJob(job?: Job) { - console.log(`Receiving job! Row ${job?.row}: ${job?.name.en}`) if (job) { setJob(job) props.saveJob(job) diff --git a/components/Party/index.tsx b/components/Party/index.tsx index 2530de64..921fd259 100644 --- a/components/Party/index.tsx +++ b/components/Party/index.tsx @@ -42,9 +42,6 @@ const Party = (props: Props) => { // Set up states const { party } = useSnapshot(appState) - const jobState = party.job - - const [job, setJob] = useState() const [currentTab, setCurrentTab] = useState(GridType.Weapon) // Reset state on first load @@ -54,14 +51,6 @@ const Party = (props: Props) => { if (props.team) storeParty(props.team) }, []) - useEffect(() => { - setJob(jobState) - }, [jobState]) - - useEffect(() => { - jobChanged() - }, [job]) - // Methods: Creating a new party async function createParty(extra: boolean = false) { let body = { @@ -89,18 +78,6 @@ const Party = (props: Props) => { } } - function jobChanged() { - if (party.id && appState.party.editable) { - api.endpoints.parties.update( - party.id, - { - party: { job_id: job ? job.id : "" }, - }, - headers - ) - } - } - function updateDetails(name?: string, description?: string, raid?: Raid) { if ( appState.party.name !== name || diff --git a/pages/new/index.tsx b/pages/new/index.tsx index a4208a7e..d2762f02 100644 --- a/pages/new/index.tsx +++ b/pages/new/index.tsx @@ -27,7 +27,6 @@ const NewRoute: React.FC = (props: Props) => { }, [persistStaticData]) function persistStaticData() { - console.log("Persisting static data...") appState.raids = props.raids appState.jobs = props.jobs appState.jobSkills = props.jobSkills