Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/src/app/duel/[lobbyCode]/Duel.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function DuelPage() {
if (!lobbyCode) {
return (
<ToastWithRedirect
to={"/duel/create"}
to={"/duel"}
message={"Please join or create a party first."}
/>
);
Expand Down
7 changes: 2 additions & 5 deletions js/src/app/duel/_components/DuelBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,14 @@ function DuelBody({

if (status === "error" || error) {
return (
<ToastWithRedirect
to={"/duel/create"}
message={"Hmm, something went wrong."}
/>
<ToastWithRedirect to={"/duel"} message={"Hmm, something went wrong."} />
);
}

if (!data || !data.success) {
return (
<ToastWithRedirect
to={"/duel/create"}
to={"/duel"}
message={"Please join or create a duel first."}
/>
);
Expand Down