connected visa intl payments
This commit is contained in:
1 parent
73142c1fcf
commit
98bb2f780e
22 files changed
+593
-252
No files matched your search
@@ -238,7 +238,7 @@ function StepLoan({ form, errors, set, t, initialData }: StepContentProps & { in
|
||||
const loanTypeOptions: InfiniteSelectOption[] = useMemo(() => {
|
||||
const lang = i18n.language ?? "en";
|
||||
const opts: InfiniteSelectOption[] = (loanTypesQuery.data?.pages ?? [])
|
||||
.flatMap((p) => p.loanTypes)
|
||||
.flatMap((p) => p?.loanTypes ?? [])
|
||||
.map((lt) => ({ value: String(lt.id), label: resolveLocalizedName(lt.title, lang) || String(lt.id) }));
|
||||
|
||||
if (initialData?.loanTypeId && !opts.some((o) => o.value === String(initialData.loanTypeId))) {
|
||||
@@ -292,7 +292,7 @@ function StepLocation({ form, errors, set, t, initialData }: StepContentProps &
|
||||
const branchOptions: InfiniteSelectOption[] = useMemo(() => {
|
||||
const lang = i18n.language ?? "en";
|
||||
const opts: InfiniteSelectOption[] = (branchQuery.data?.pages ?? [])
|
||||
.flatMap((p) => p.branches)
|
||||
.flatMap((p) => p?.branches ?? [])
|
||||
.map((b) => ({
|
||||
value: String(b.id),
|
||||
label: resolveLocalizedName(b.name, lang) || b.uniqueCode || String(b.id),
|
||||
@@ -672,7 +672,7 @@ function StepJob({ form, errors, set, t, initialData }: StepContentProps & { ini
|
||||
const provinceOptions: InfiniteSelectOption[] = useMemo(() => {
|
||||
const lang = i18n.language ?? "en";
|
||||
const opts: InfiniteSelectOption[] = (provinceQuery.data?.pages ?? [])
|
||||
.flatMap((p) => p.provinces)
|
||||
.flatMap((p) => p?.provinces ?? [])
|
||||
.map((prov) => ({ value: String(prov.id), label: resolveLocalizedName(prov.name, lang) || String(prov.id) }));
|
||||
|
||||
if (initialData?.workCityId && !opts.some((o) => o.value === String(initialData.workCityId))) {
|
||||
|
||||
Reference in new issue
Block a user