diff --git a/src/driven/utils/constants/staticMessages.ts b/src/driven/utils/constants/staticMessages.ts
index c21228c..c841036 100644
--- a/src/driven/utils/constants/staticMessages.ts
+++ b/src/driven/utils/constants/staticMessages.ts
@@ -20,6 +20,9 @@ export const staticMessages = {
enterPanel: 'Enter to Panel',
enterPhoneNumber: 'Enter your phone number',
enterOtpCode: 'Enter your Otp Code',
+ success: {
+ createUser: 'user created successfully',
+ },
},
service: {
errors: {
diff --git a/src/driving/application/core/create-user/infra/CreateUser.tsx b/src/driving/application/core/create-user/infra/CreateUser.tsx
index b68b686..ec77918 100644
--- a/src/driving/application/core/create-user/infra/CreateUser.tsx
+++ b/src/driving/application/core/create-user/infra/CreateUser.tsx
@@ -29,7 +29,15 @@ export default function CreateUser() {
// pass the usecase to the model
const { handleSubmitForm } = createUserModel({ createUserLogic });
// pass the method to the viewmodel to call on submit
- const { stateHandler, onSubmit, inputNames } = useCreateUserVM({ handleSubmitForm });
+ const { stateHandler, onSubmit, inputNames, error, setError } = useCreateUserVM({ handleSubmitForm });
// get all of the needed information to the user to show
- return