|
|
@ -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) { |
|
|
|