Browse Source

fix: Correct success result check for saving profile.

pull/142/head
Trent Larson 5 days ago
parent
commit
a11ff04afa
  1. 3
      src/services/ProfileService.ts

3
src/services/ProfileService.ts

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

Loading…
Cancel
Save