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
17 changes: 1 addition & 16 deletions src/app/(setup)/setup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,22 +170,7 @@ export default function SetupPage() {
)
}

if (showDeviceNotSupportedModal) {
return (
<ActionModal
visible={true}
onClose={() => {}} // no action on close for this modal
title="Device not supported!"
description="This device doesn't support some of the technologies Peanut needs to work properly. Please try opening this link on a newer phone."
icon={'alert' as IconName}
preventClose={true}
hideModalCloseButton={true}
ctas={[]}
/>
)
}

if (showBrowserNotSupportedModal) {
if (showBrowserNotSupportedModal || showDeviceNotSupportedModal) {
return <UnsupportedBrowserModal visible={true} allowClose={false} />
}

Expand Down
5 changes: 4 additions & 1 deletion src/components/AddWithdraw/AddWithdrawRouterView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export const AddWithdrawRouterView: FC<AddWithdrawRouterViewProps> = ({
setIsLoadingPreferences(true)
if (flow === 'withdraw') {
const bankAccounts =
user?.accounts.filter((acc) => acc.type === AccountType.IBAN || acc.type === AccountType.US) ?? []
user?.accounts.filter(
(acc) =>
acc.type === AccountType.IBAN || acc.type === AccountType.US || acc.type === AccountType.CLABE
) ?? []

if (bankAccounts.length > 0) {
setSavedAccounts(bankAccounts as unknown as Account[])
Expand Down
Loading