Condense createParty into one method call

This commit is contained in:
Justin Edmund 2022-12-30 05:18:14 -08:00
parent 7580e544fe
commit 8c952a57f5

View file

@ -41,13 +41,11 @@ const Party = (props: Props) => {
// Methods: Creating a new party
async function createParty(extra: boolean = false) {
let body = {
return await api.endpoints.parties.create({
party: {
extra: extra,
},
}
return await api.endpoints.parties.create(body)
})
}
// Methods: Updating the party's details