Skip to content

Commit

Permalink
fix: code clean up for toast.success messages
Browse files Browse the repository at this point in the history
  • Loading branch information
loklokyx committed Feb 10, 2025
1 parent f5d3a01 commit de64efc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function CategoryDataTableForm() {
1000,
{
onSuccess: () => {
toast.success("Teams created successfully!");
toast.success("Categories created successfully!");
router.push("/question/category/");
},
},
Expand Down
4 changes: 2 additions & 2 deletions client/src/pages/test/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function UpdatePracticeForm({ adminQuiz }: { adminQuiz: AdminQuiz }) {
queryKeys: [mutationKey, ["quiz.admin-quizzes"]],
endpoint: `/quiz/admin-quizzes/${adminQuizId}/`,
onSuccess: () => {
toast.success("Practice created successfully!");
toast.success("Practice updated successfully!");
router.reload();
},
});
Expand Down Expand Up @@ -246,7 +246,7 @@ function UpdatePracticeQuestionBlocksForm({
1000,
{
onSuccess: () => {
toast.success("Practice question blocks created successfully!");
toast.success("Practice question blocks updated successfully!");
router.reload();
},
},
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/test/competition/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ function UpdateCompetitionQuestionBlocksForm({
1000,
{
onSuccess: () => {
toast.success("Competition question blocks created successfully!");
toast.success("Competition question blocks updated successfully!");
router.reload();
},
},
Expand Down

0 comments on commit de64efc

Please sign in to comment.