diff --git a/src/common/init/initialize.ts b/src/common/init/initialize.ts index ea5a99017..e73f12702 100644 --- a/src/common/init/initialize.ts +++ b/src/common/init/initialize.ts @@ -44,7 +44,7 @@ const initSentry = async (dsn: string) => { levels: ['error', 'warn'], }), ], - tracesSampleRate: 0.01, + tracesSampleRate: 0.1, }); }; diff --git a/src/components/ViewContainer/PaymentFormView/CardForm/CardForm.tsx b/src/components/ViewContainer/PaymentFormView/CardForm/CardForm.tsx index a37f4ff49..0a5c2e4e2 100644 --- a/src/components/ViewContainer/PaymentFormView/CardForm/CardForm.tsx +++ b/src/components/ViewContainer/PaymentFormView/CardForm/CardForm.tsx @@ -1,4 +1,4 @@ -import { Spacer, VStack, Text, Flex, Button, LightMode } from '@chakra-ui/react'; +import { Spacer, VStack, Text, Flex, Button, LightMode, useToast } from '@chakra-ui/react'; import { useContext } from 'react'; import { SubmitHandler, useForm } from 'react-hook-form'; @@ -10,7 +10,7 @@ import { PaymentModelContext, ViewModelContext, } from 'checkout/contexts'; -import { isNil } from 'checkout/utils'; +import { extractError, isNil } from 'checkout/utils'; import { CardHolderFormControl } from './CardHolderFormControl'; import { CardNumberFormControl } from './CardNumberFormControl'; @@ -47,6 +47,8 @@ export function CardForm() { const deepLink = initContext?.deepLink; + const toast = useToast(); + return (