forked from jsnbuchanan/crowd-funder-for-time-pwa
fix: Correct success result check for saving profile.
This commit is contained in:
@@ -103,9 +103,10 @@ export class ProfileService {
|
|||||||
{ headers },
|
{ headers },
|
||||||
);
|
);
|
||||||
|
|
||||||
if (response.status === 200) {
|
if (response.status === 201) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
logger.error("Error saving profile:", response);
|
||||||
throw new Error(ACCOUNT_VIEW_CONSTANTS.ERRORS.PROFILE_NOT_SAVED);
|
throw new Error(ACCOUNT_VIEW_CONSTANTS.ERRORS.PROFILE_NOT_SAVED);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user