Skip to content

Commit

Permalink
Don't wipe weapons if different
Browse files Browse the repository at this point in the history
  • Loading branch information
Sendouc committed Oct 21, 2023
1 parent 7f630cc commit 1ce17de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/features/sendouq/routes/q.match.$id.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ export const action = async ({ request, params }: ActionArgs) => {
setGroupAsInactive(match.bravoGroupId);
}
})();
// in a different transaction but it's okay
reportWeapons();

if (compared === "DIFFERENT") {
return {
Expand All @@ -246,6 +244,9 @@ export const action = async ({ request, params }: ActionArgs) => {
};
}

// in a different transaction but it's okay
reportWeapons();

if (match.chatCode) {
const type = (): NonNullable<ChatMessage["type"]> => {
if (compared === "SAME") {
Expand Down

0 comments on commit 1ce17de

Please sign in to comment.