File tree Expand file tree Collapse file tree
apps/app/src/app/(app)/[orgId]/people/[employeeId]/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -191,8 +191,8 @@ export function EmployeeBackgroundCheck({
191191 }
192192
193193 form . reset ( {
194- employeeName : pendingRequest . employeeName ,
195- employeeEmail : pendingRequest . employeeEmail ,
194+ employeeName : form . getValues ( ' employeeName' ) || employee . user . name || '' ,
195+ employeeEmail : form . getValues ( ' employeeEmail' ) || '' ,
196196 requesterNotes : pendingRequest . requesterNotes ?? '' ,
197197 } ) ;
198198 setBillingSetupComplete ( true ) ;
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ export const backgroundCheckSchema = z.object({
88
99export type BackgroundCheckFormValues = z . infer < typeof backgroundCheckSchema > ;
1010
11- const pendingBackgroundCheckSchema = backgroundCheckSchema . extend ( {
11+ const pendingBackgroundCheckSchema = z . object ( {
1212 memberId : z . string ( ) ,
1313 organizationId : z . string ( ) ,
14+ requesterNotes : z . string ( ) . optional ( ) ,
1415} ) ;
1516
1617export type PendingBackgroundCheckRequest = z . infer < typeof pendingBackgroundCheckSchema > ;
@@ -65,8 +66,6 @@ export function writePendingBackgroundCheckRequest({
6566 const pendingRequest : PendingBackgroundCheckRequest = {
6667 organizationId,
6768 memberId,
68- employeeName : values . employeeName ,
69- employeeEmail : values . employeeEmail ,
7069 requesterNotes : values . requesterNotes ,
7170 } ;
7271 window . sessionStorage . setItem (
You can’t perform that action at this time.
0 commit comments