From 8577a0a003c259356e87373d4d333906ebfbc5b9 Mon Sep 17 00:00:00 2001 From: Ildar Galeev Date: Mon, 18 Sep 2023 20:02:02 +0300 Subject: [PATCH] TD-718: Fix failed dynamically imported modules (#236) --- .../modal/form-container/form-container.tsx | 11 +++-------- src/app/initialize.ts | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/app/components/app/modal-container/modal/form-container/form-container.tsx b/src/app/components/app/modal-container/modal/form-container/form-container.tsx index f626f42f..64bbd915 100644 --- a/src/app/components/app/modal-container/modal/form-container/form-container.tsx +++ b/src/app/components/app/modal-container/modal/form-container/form-container.tsx @@ -7,6 +7,9 @@ import { findNamed } from 'checkout/utils'; import { device } from 'checkout/utils/device'; import { FormLoader } from './form-loader'; +import NoAvailablePaymentMethodForm from './no-available-payment-method-form/no-available-payment-method-form'; +import RedirectForm from './redirect-form/redirect-form'; +import ResultForm from './result-form/result-form'; import { ModalContext } from '../../modal-context'; const Container = styled.div` @@ -40,14 +43,6 @@ const WalletForm = lazy(() => import('./wallet-form/wallet-form')); const WalletProviders = lazy(() => import('./wallet-providers/wallet-providers')); -const ResultForm = lazy(() => import('./result-form/result-form')); - -const NoAvailablePaymentMethodForm = lazy( - () => import('./no-available-payment-method-form/no-available-payment-method-form'), -); - -const RedirectForm = lazy(() => import('./redirect-form/redirect-form')); - const PaymentTerminalForm = lazy(() => import('./payment-terminal-form/payment-terminal-form')); const PaymentTerminalSelectorForm = lazy( diff --git a/src/app/initialize.ts b/src/app/initialize.ts index b8d4b214..4667e396 100644 --- a/src/app/initialize.ts +++ b/src/app/initialize.ts @@ -48,7 +48,7 @@ const initSentry = async (dsn: string) => { }), new Replay(), ], - tracesSampleRate: 0.2, + tracesSampleRate: 0.1, release: env.version, replaysOnErrorSampleRate: 1.0, replaysSessionSampleRate: 0.1,