feat: add getProfile function and integrate user profile retrieval in payment and layout components
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m47s

This commit is contained in:
2025-04-20 07:40:31 +05:00
parent ac11fee754
commit ba91d2c8d4
5 changed files with 51 additions and 18 deletions

View File

@ -198,10 +198,14 @@ export async function VerifyRegistrationOTP(
// redirect(`/auth/verify-otp?phone_number=${mobile}`);
// }
}
if (data.message !== "User created successfully.") {
return {
message: "Your account could not be verified. Please contact support.",
status: "verify_error",
};
}
return {
message:
data.message ||
"Your account could not be verified. Please contact support.",
status: "verify_error",
message: data.message,
status: "verify_success",
};
}