From 424a6dedd479034c6cf67969fc1e11efcb7f6c6a Mon Sep 17 00:00:00 2001 From: Emily Jablonski <65367387+emilyjablonski@users.noreply.github.com> Date: Thu, 21 Sep 2023 10:27:27 -0600 Subject: [PATCH] fix: remove email from export error (#3651) --- sites/partners/__tests__/pages/listings/index.test.tsx | 2 +- sites/partners/__tests__/pages/users/index.test.tsx | 9 ++++++--- .../partners/page_content/locale_overrides/general.json | 1 - sites/partners/src/pages/index.tsx | 2 +- .../src/pages/listings/[id]/applications/index.tsx | 2 +- sites/partners/src/pages/users/index.tsx | 2 +- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/sites/partners/__tests__/pages/listings/index.test.tsx b/sites/partners/__tests__/pages/listings/index.test.tsx index bbe5e961e4..8c6776f7b2 100644 --- a/sites/partners/__tests__/pages/listings/index.test.tsx +++ b/sites/partners/__tests__/pages/listings/index.test.tsx @@ -112,7 +112,7 @@ describe("listings", () => { expect(exportButton).toBeInTheDocument() fireEvent.click(exportButton) const error = await findByText( - "Export failed. Please try again later. If the problem persists, please email supportbloom@exygy.com", + "There was an error. Please try again, or contact support for help.", { exact: false, } diff --git a/sites/partners/__tests__/pages/users/index.test.tsx b/sites/partners/__tests__/pages/users/index.test.tsx index c5951de095..c925dd5889 100644 --- a/sites/partners/__tests__/pages/users/index.test.tsx +++ b/sites/partners/__tests__/pages/users/index.test.tsx @@ -150,9 +150,12 @@ describe("users", () => { const exportButton = await findByText("Export to CSV") expect(exportButton).toBeInTheDocument() fireEvent.click(exportButton) - const errorMessage = await findByText("Export failed. Please try again later.", { - exact: false, - }) + const errorMessage = await findByText( + "There was an error. Please try again, or contact support for help.", + { + exact: false, + } + ) expect(errorMessage).toBeInTheDocument() expect(console.log).toHaveBeenCalled() }) diff --git a/sites/partners/page_content/locale_overrides/general.json b/sites/partners/page_content/locale_overrides/general.json index a76b760971..85ef507cdb 100644 --- a/sites/partners/page_content/locale_overrides/general.json +++ b/sites/partners/page_content/locale_overrides/general.json @@ -110,7 +110,6 @@ "authentication.createAccount.firstName": "First Name", "authentication.createAccount.lastName": "Last Name", "errors.alert.emailConflict": "That email is already in use", - "errors.alert.exportFailed": "Export failed. Please try again later. If the problem persists, please email supportbloom@exygy.com", "errors.maxLessThanMinOccupancyError": "Max Occupancy must be greater than or equal to Minimum Occupancy", "errors.minGreaterThanMaxOccupancyError": "Minimum Occupancy must be less than or equal to Max Occupancy", "errors.partialAddress": "Cannot enter a partial address", diff --git a/sites/partners/src/pages/index.tsx b/sites/partners/src/pages/index.tsx index a93efc89df..1b0102ab2f 100644 --- a/sites/partners/src/pages/index.tsx +++ b/sites/partners/src/pages/index.tsx @@ -173,7 +173,7 @@ export default function ListingsList() { type="alert" inverted > - {t("errors.alert.exportFailed")} + {t("account.settings.alerts.genericError")} )} { timeout={5000} dismissable sticky={true} - alertMessage={{ message: t("errors.alert.exportFailed"), type: "alert" }} + alertMessage={{ message: t("account.settings.alerts.genericError"), type: "alert" }} /> )} { type="alert" inverted > - {t("errors.alert.exportFailed")} + {t("account.settings.alerts.genericError")} )}