Skip to content

Commit

Permalink
chore(EMS-1816): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ttbarnes committed Jun 26, 2023
1 parent d78540c commit 43b386c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e-tests/cypress/support/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const getAccountByEmail = async (email) => {
url,
});

if (!response.body?.data) {
if (!response?.body?.data) {
throw new Error('Getting account by email ', { response });
}

Expand Down Expand Up @@ -299,7 +299,7 @@ const getApplicationByReferenceNumber = async (referenceNumber) => {
url,
});

if (!response.body?.data) {
if (!response?.body?.data) {
throw new Error(`Getting application by reference number ${referenceNumber}`, { response });
}

Expand Down

0 comments on commit 43b386c

Please sign in to comment.