diff --git a/components/Party/index.tsx b/components/Party/index.tsx index 05fb6547..35c8499f 100644 --- a/components/Party/index.tsx +++ b/components/Party/index.tsx @@ -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