diff --git a/src/app/(mobile-ui)/add-money/crypto/direct/page.tsx b/src/app/(mobile-ui)/add-money/crypto/direct/page.tsx index e5b415d23..f99263d05 100644 --- a/src/app/(mobile-ui)/add-money/crypto/direct/page.tsx +++ b/src/app/(mobile-ui)/add-money/crypto/direct/page.tsx @@ -47,7 +47,8 @@ export default function AddMoneyCryptoDirectPage() { Add Money diff --git a/src/components/Global/DaimoPayButton/index.tsx b/src/components/Global/DaimoPayButton/index.tsx index 516b4d5a9..358b6cc33 100644 --- a/src/components/Global/DaimoPayButton/index.tsx +++ b/src/components/Global/DaimoPayButton/index.tsx @@ -74,12 +74,12 @@ export const DaimoPayButton = ({ // Validate amount range if specified if (minAmount !== undefined && formattedAmount < minAmount) { - onValidationError?.(`Minimum deposit using crypto is $${minAmount.toFixed(2)}.`) + onValidationError?.(`Minimum deposit using crypto is $${minAmount}.`) return false } if (maxAmount !== undefined && formattedAmount > maxAmount) { - onValidationError?.(`Maximum deposit using crypto is $${maxAmount.toFixed(2)}.`) + onValidationError?.(`Maximum deposit using crypto is $${maxAmount}.`) return false } diff --git a/src/components/Global/SoundPlayer.tsx b/src/components/Global/SoundPlayer.tsx index e09a326e4..865492738 100644 --- a/src/components/Global/SoundPlayer.tsx +++ b/src/components/Global/SoundPlayer.tsx @@ -1,5 +1,6 @@ 'use client' +import { DeviceType, useDeviceType } from '@/hooks/useGetDeviceType' import { useEffect, useRef } from 'react' const soundMap = { @@ -18,6 +19,13 @@ type SoundPlayerProps = { export const SoundPlayer = ({ sound }: SoundPlayerProps) => { const audioRef = useRef(null) + const { deviceType } = useDeviceType() + + // Early return for iOS devices - completely disable sound + if (deviceType === DeviceType.IOS) { + return null + } + useEffect(() => { const audioSrc = soundMap[sound] if (!audioSrc) return diff --git a/src/components/Payment/Views/Status.payment.view.tsx b/src/components/Payment/Views/Status.payment.view.tsx index 449309a31..aec16c328 100644 --- a/src/components/Payment/Views/Status.payment.view.tsx +++ b/src/components/Payment/Views/Status.payment.view.tsx @@ -27,7 +27,7 @@ type DirectSuccessViewProps = { amount?: string message?: string | ReactNode recipientType?: RecipientType - type?: 'SEND' | 'REQUEST' | 'DEPOSIT' + type?: 'SEND' | 'REQUEST' headerTitle?: string currencyAmount?: string isExternalWalletFlow?: boolean @@ -173,13 +173,12 @@ const DirectSuccessView = ({ if (isWithdrawFlow) return 'You just withdrew' if (type === 'SEND') return 'You sent ' if (type === 'REQUEST') return 'You requested ' - if (type === 'DEPOSIT') return 'You successfully added ' } return (
- {(type === 'SEND' || type === 'DEPOSIT') && ( + {type === 'SEND' && (