fix: Correct success result check for saving profile.

This commit is contained in:
2025-08-08 19:26:52 -06:00
parent e8bf8014b4
commit a11ff04afa

View File

@@ -103,9 +103,10 @@ export class ProfileService {
{ headers },
);
if (response.status === 200) {
if (response.status === 201) {
return true;
} else {
logger.error("Error saving profile:", response);
throw new Error(ACCOUNT_VIEW_CONSTANTS.ERRORS.PROFILE_NOT_SAVED);
}
} catch (error) {