Skip to content

Commit bb335ba

Browse files
committed
Just directly navigate to the submitted room request
1 parent c697304 commit bb335ba

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/ui/pages/roomRequest/NewRoomRequest.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,7 @@ const NewRoomRequest: React.FC<NewRoomRequestProps> = ({
349349
return;
350350
}
351351
const response = await createRoomRequest(values);
352-
await navigate("/roomRequests");
353-
notifications.show({
354-
title: "Room Request Submitted",
355-
message: `The request ID is ${response.id}.`,
356-
});
352+
navigate(`/roomRequests/${values.semester}/${response.id}`);
357353
} catch (e) {
358354
notifications.show({
359355
color: "red",

0 commit comments

Comments
 (0)