Skip to content

Commit a121cec

Browse files
authored
ORV2- 4316 - FE Update: CV Client CA and Staff can change Client Name in log in workflows (#2120)
Co-authored-by: GlenAOT <160973940+GlenAOT@users.noreply.github.com>
1 parent 5e7d89d commit a121cec

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

frontend/src/features/wizard/subcomponents/CompanyAndUserInfoSteps.tsx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import { Button, Stack } from "@mui/material";
22
import { Dispatch, SetStateAction } from "react";
33
import { useFormContext } from "react-hook-form";
4-
import { useAuth } from "react-oidc-context";
54
import { useNavigate } from "react-router-dom";
65

76
import { Nullable } from "../../../common/types/common";
8-
import { getDefaultRequiredVal } from "../../../common/helpers/util";
97
import { BC_COLOURS } from "../../../themes/bcGovStyles";
108
import { CreateCompanyRequest } from "../../manageProfile/types/manageProfile";
119
import { CompanyInformationWizardForm } from "./CompanyInformationWizardForm";
12-
import { WizardClientBanner } from "./WizardClientBanner";
1310
import { useCreateProfileMutation } from "../hooks/hooks";
1411

1512
/**
@@ -22,12 +19,9 @@ export const CompanyAndUserInfoSteps = ({
2219
setClientNumber: Dispatch<SetStateAction<Nullable<string>>>;
2320
}) => {
2421
const navigate = useNavigate();
25-
const { handleSubmit: handleCreateProfileSubmit, register } =
22+
const { handleSubmit: handleCreateProfileSubmit } =
2623
useFormContext<CreateCompanyRequest>();
2724

28-
const { user } = useAuth();
29-
const isBusinessBCeID = Boolean(user?.profile?.bceid_business_name);
30-
3125
const { mutate: createProfile } = useCreateProfileMutation(setClientNumber);
3226

3327
/**
@@ -58,17 +52,6 @@ export const CompanyAndUserInfoSteps = ({
5852
return (
5953
<>
6054
<div className="create-profile-section create-profile-section--company">
61-
{isBusinessBCeID && (
62-
<>
63-
<input type="hidden" {...register("legalName")} />
64-
<WizardClientBanner
65-
legalName={getDefaultRequiredVal(
66-
"",
67-
user?.profile?.bceid_business_name as string,
68-
)}
69-
/>
70-
</>
71-
)}
7255
<CompanyInformationWizardForm />
7356
</div>
7457
<div className="create-profile-section create-profile-section--nav">

0 commit comments

Comments
 (0)