mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-23 03:26:16 -05:00
Fix not showing team on the match page if made on preparing screen
This commit is contained in:
@@ -34,6 +34,7 @@ import { refreshGroup } from "../queries/refreshGroup.server";
|
||||
import { setGroupAsActive } from "../queries/setGroupAsActive.server";
|
||||
import { trustedPlayersAvailableToPlay } from "../queries/usersInActiveGroup.server";
|
||||
import { useAutoRefresh } from "~/hooks/useAutoRefresh";
|
||||
import { syncGroupTeamId } from "../queries/syncGroupTeamId.server";
|
||||
|
||||
export const handle: SendouRouteHandle = {
|
||||
i18n: ["q"],
|
||||
@@ -94,6 +95,10 @@ export const action: ActionFunction = async ({ request }) => {
|
||||
userId: data.id,
|
||||
});
|
||||
|
||||
if (ownGroupWithMembers.members.length + 1 === FULL_GROUP_SIZE) {
|
||||
syncGroupTeamId(ownGroupWithMembers.id);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
default: {
|
||||
|
||||
Reference in New Issue
Block a user