From d1e4ce2f3144ac7a8e8ae5f1a93228f10f28a9c6 Mon Sep 17 00:00:00 2001 From: Alex <33497058+bexsoft@users.noreply.github.com> Date: Mon, 25 Oct 2021 13:33:46 -0500 Subject: [PATCH] Fixed error message on tenant creation wizard (#1143) Signed-off-by: Benjamin Perez --- .../screens/Console/Tenants/AddTenant/AddTenant.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/portal-ui/src/screens/Console/Tenants/AddTenant/AddTenant.tsx b/portal-ui/src/screens/Console/Tenants/AddTenant/AddTenant.tsx index bc83d05c7..4c4769863 100644 --- a/portal-ui/src/screens/Console/Tenants/AddTenant/AddTenant.tsx +++ b/portal-ui/src/screens/Console/Tenants/AddTenant/AddTenant.tsx @@ -36,7 +36,7 @@ import { NewServiceAccount } from "../../Common/CredentialsPrompt/types"; import { ErrorResponseHandler, ITenantCreator } from "../../../../common/types"; import { KeyPair } from "../ListTenants/utils"; -import { setModalErrorSnackMessage } from "../../../../actions"; +import { setErrorSnackMessage } from "../../../../actions"; import { getDefaultAffinity, getNodeSelector } from "../TenantDetails/utils"; import CredentialsPrompt from "../../Common/CredentialsPrompt/CredentialsPrompt"; import NameTenant from "./Steps/NameTenant"; @@ -53,7 +53,7 @@ import history from "../../../../history"; import Images from "./Steps/Images"; interface IAddTenantProps { - setModalErrorSnackMessage: typeof setModalErrorSnackMessage; + setErrorSnackMessage: typeof setErrorSnackMessage; resetAddTenantForm: typeof resetAddTenantForm; updateAddField: typeof updateAddField; fields: IFieldStore; @@ -81,7 +81,7 @@ const AddTenant = ({ selectedStorageClass, namespace, validPages, - setModalErrorSnackMessage, + setErrorSnackMessage, resetAddTenantForm, }: IAddTenantProps) => { // Modals @@ -629,7 +629,7 @@ const AddTenant = ({ }) .catch((err: ErrorResponseHandler) => { setAddSending(false); - setModalErrorSnackMessage(err); + setErrorSnackMessage(err); }); } // eslint-disable-next-line react-hooks/exhaustive-deps @@ -752,7 +752,7 @@ const mapState = (state: AppState) => ({ }); const connector = connect(mapState, { - setModalErrorSnackMessage, + setErrorSnackMessage, updateAddField, resetAddTenantForm, });