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