@opexa/portal-components 0.0.1031 → 0.0.1033
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -61,8 +61,7 @@ export function KycOpenOnHomeMount(props) {
|
|
|
61
61
|
if (isFirstVisit) {
|
|
62
62
|
//show verification locked message after logging in
|
|
63
63
|
if (isVerificationLocked) {
|
|
64
|
-
|
|
65
|
-
setkycReminderOpen(false);
|
|
64
|
+
setkycReminderOpen(true);
|
|
66
65
|
setkycOpen(false);
|
|
67
66
|
return;
|
|
68
67
|
}
|
|
@@ -151,7 +151,19 @@ export function SignUpDefaultForm() {
|
|
|
151
151
|
? emailAddressBaseSchema
|
|
152
152
|
: z.string().optional(),
|
|
153
153
|
branchCode: !signUpProps.basicSignUp && (signUpProps?.branches ?? []).length > 0
|
|
154
|
-
? z
|
|
154
|
+
? z
|
|
155
|
+
.string()
|
|
156
|
+
.trim()
|
|
157
|
+
.superRefine((val, ctx) => {
|
|
158
|
+
const branches = signUpProps.branches ?? [];
|
|
159
|
+
const branch = branches.find((b) => itemToValue(b) === val);
|
|
160
|
+
if (!branch?.code) {
|
|
161
|
+
ctx.addIssue({
|
|
162
|
+
code: z.ZodIssueCode.custom,
|
|
163
|
+
message: 'Branch is required',
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
})
|
|
155
167
|
: z.string().optional(),
|
|
156
168
|
});
|
|
157
169
|
const Step2Definition = z.object({
|
|
@@ -291,7 +303,7 @@ export function SignUpDefaultForm() {
|
|
|
291
303
|
}),
|
|
292
304
|
...(signUpProps?.branches &&
|
|
293
305
|
signUpProps.branches.length > 0 && {
|
|
294
|
-
branchCode: step1Form.getValues('branchCode'),
|
|
306
|
+
branchCode: signUpProps.branches.find((b) => itemToValue(b) === step1Form.getValues('branchCode'))?.code ?? step1Form.getValues('branchCode'),
|
|
295
307
|
}),
|
|
296
308
|
}),
|
|
297
309
|
...(signUpProps.showEmailAddressField && {
|