From 8aaca848b272a0727683deda73dbc57e947d4a64 Mon Sep 17 00:00:00 2001 From: Pico2x Date: Wed, 5 Oct 2022 14:02:17 +0100 Subject: [PATCH] Updating group name works again. --- web/components/groups/edit-group-button.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/components/groups/edit-group-button.tsx b/web/components/groups/edit-group-button.tsx index bc8af2ac..71c6034e 100644 --- a/web/components/groups/edit-group-button.tsx +++ b/web/components/groups/edit-group-button.tsx @@ -3,7 +3,7 @@ import clsx from 'clsx' import { PencilIcon } from '@heroicons/react/outline' import { Group } from 'common/group' -import { deleteGroup, joinGroup } from 'web/lib/firebase/groups' +import { deleteGroup, joinGroup, updateGroup } from 'web/lib/firebase/groups' import { Spacer } from '../layout/spacer' import { useRouter } from 'next/router' import { Modal } from 'web/components/layout/modal' @@ -31,6 +31,7 @@ export function EditGroupButton(props: { group: Group; className?: string }) { setIsSubmitting(true) await Promise.all(addMemberUsers.map((user) => joinGroup(group, user.id))) + await updateGroup(group, { name }) setIsSubmitting(false) updateOpen(false)