ENCOA-86: Fixed broken labels on release
This commit is contained in:
@@ -11,12 +11,12 @@ export const useAssignmentRelease = (assignmentId: string, reload?: Function) =>
|
||||
axios
|
||||
.post(`/api/assignments/${assignmentId}/release`)
|
||||
.then((res) => {
|
||||
toast.success("Assignment archived!");
|
||||
toast.success("Assignment released!");
|
||||
if (reload) reload();
|
||||
setLoading(false);
|
||||
})
|
||||
.catch((err) => {
|
||||
toast.error("Failed to archive the assignment!");
|
||||
toast.error("Failed to release the assignment!");
|
||||
setLoading(false);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user