Skip to content

Commit

Permalink
fix wrong message
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugisha146 committed Dec 6, 2024
1 parent 9ba78db commit 52d6893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/redux/actions/traineeAttributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ export const createTraineeAttribute = (attributeData: any) => async (dispatch: A
const { data } = response.data;
if (data?.createTraineeAttribute) {
dispatch({ type: CREATE_TRAINEE_ATTRIBUTE_SUCCESS, payload: data.createTraineeAttribute });
toast.success("Trainee created successfully.");
toast.success("Application Submited successfully.");
return { success: true, data: data.createTraineeAttribute && data.createTraineeAttribute._id};
} else {
throw new Error("Failed to create trainee attributes: Unexpected response structure");
throw new Error("Failed to create applicant attributes: Unexpected response structure");
}
} catch (error: any) {
handleCreateAttributeError(error, dispatch);
Expand Down

0 comments on commit 52d6893

Please sign in to comment.