Skip to content

Commit

Permalink
Remove console logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Robert committed Jan 18, 2024
1 parent 829e4a1 commit b608f37
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/apis/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export async function login(credentials, failureCallback = null) {
}).toString(),
});
if (resp.ok) {
console.log('Success!');
// Extract contactKey and externalID from response JSON. Store in session
const responseJson = await resp.json();
const { contactKey } = responseJson;
Expand All @@ -106,7 +105,6 @@ export async function login(credentials, failureCallback = null) {
sessionStorage.setItem('userDetails', JSON.stringify(sessionData));
return sessionData;
}
console.error('Failed to login');
logout();
if (failureCallback) {
failureCallback(resp);
Expand Down

0 comments on commit b608f37

Please sign in to comment.