Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbar01234 authored and actions-user committed Apr 28, 2024
1 parent 4bdbdf7 commit 013a0d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/app/api/chapter/[chapterId]/route.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ export const deleteChapterResponse = z.discriminatedUnion("code", [
code: z.literal("CHAPTER_NOT_FOUND"),
message: z.literal("The chapter id could not be found"),
}),

]);
2 changes: 1 addition & 1 deletion src/components/AdminHomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const AdminHomePage = ({ chapters }: AdminHomePageProps) => {
name: "Remove Chapter",
onClick: async () => {
const response = await deleteChapter(chapter.id);
router.refresh();
router.refresh();
},
color: "#ef6767",
icon: <FontAwesomeIcon icon={faTrashCan} />,
Expand Down

0 comments on commit 013a0d6

Please sign in to comment.