Skip to content

Commit

Permalink
feat: 走行結果送信後に試合表に遷移する
Browse files Browse the repository at this point in the history
  • Loading branch information
tufusa committed Oct 25, 2024
1 parent c646343 commit ebfc613
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/kcmsf/src/pages/match.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,11 @@ export const Match = () => {
},
}}
onSubmit={(isSucceeded) => {
if (!isSucceeded || match?.matchType != "main") return;
if (!isSucceeded) return;

navigate(0);
navigate(`/matchlist?match_type=${matchType}`, {
viewTransition: true,
});
}}
/>
)}
Expand Down

0 comments on commit ebfc613

Please sign in to comment.