Condense createParty into one method call
This commit is contained in:
parent
7580e544fe
commit
8c952a57f5
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue