Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/app/(mobile-ui)/add-money/[country]/bank/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,9 @@ export default function OnrampBankPage() {
if (step === 'loading') {
const currentKycStatus = liveKycStatus || user?.user.kycStatus
const isUserKycVerified = currentKycStatus === 'approved'
const hasUserDetails = user?.user.fullName && user?.user.email

if (!isUserKycVerified) {
if (hasUserDetails) {
setStep('kyc')
} else {
setStep('collectUserDetails')
}
setStep('collectUserDetails')
} else {
setStep('inputAmount')
if (amountFromContext && !rawTokenAmount) {
Expand Down
2 changes: 0 additions & 2 deletions src/components/AddMoney/UserDetailsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export const UserDetailsForm = forwardRef<{ handleSubmit: () => void }, UserDeta
rules: any,
type: string = 'text'
) => {
const isDisabled = name === 'email' ? !!initialData?.email : !!initialData?.firstName // also check for lastname implicitly with firstname
return (
<div className="w-full">
<div className="relative">
Expand All @@ -68,7 +67,6 @@ export const UserDetailsForm = forwardRef<{ handleSubmit: () => void }, UserDeta
type={type}
placeholder={placeholder}
className="h-12 w-full rounded-sm border border-n-1 bg-white px-4 text-sm"
disabled={isDisabled}
/>
)}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Claim/Link/Initial.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ export const InitialClaimLinkView = ({
})
if (user?.user.kycStatus === 'approved') {
const account = user.accounts.find(
(account: any) =>
account.account_identifier.replaceAll(/\s/g, '').toLowerCase() ===
(account) =>
account.identifier.replaceAll(/\s/g, '').toLowerCase() ===
recipient.address.replaceAll(/\s/g, '').toLowerCase()
)

Expand Down
Loading