Fix reference to user ID

This commit is contained in:
Justin Edmund 2022-01-28 21:27:29 -08:00
parent 05f2c8d30f
commit b08ac89f9b

View file

@ -149,13 +149,13 @@ const Party = (props: Props) => {
} }
async function createParty() { async function createParty() {
const body = (cookies.userId === undefined) ? { const body = (cookies.user.userId === undefined) ? {
party: { party: {
is_extra: extra is_extra: extra
} }
} : { } : {
party: { party: {
user_id: cookies.userId, user_id: cookies.user.userId,
is_extra: extra is_extra: extra
} }
} }