Skip to content

Commit 52d6893

Browse files
committed
fix wrong message
1 parent 9ba78db commit 52d6893

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/redux/actions/traineeAttributes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ export const createTraineeAttribute = (attributeData: any) => async (dispatch: A
6161
const { data } = response.data;
6262
if (data?.createTraineeAttribute) {
6363
dispatch({ type: CREATE_TRAINEE_ATTRIBUTE_SUCCESS, payload: data.createTraineeAttribute });
64-
toast.success("Trainee created successfully.");
64+
toast.success("Application Submited successfully.");
6565
return { success: true, data: data.createTraineeAttribute && data.createTraineeAttribute._id};
6666
} else {
67-
throw new Error("Failed to create trainee attributes: Unexpected response structure");
67+
throw new Error("Failed to create applicant attributes: Unexpected response structure");
6868
}
6969
} catch (error: any) {
7070
handleCreateAttributeError(error, dispatch);

0 commit comments

Comments
 (0)