@@ -31,12 +31,6 @@ export interface CheckoutAppProps {
3131const CheckoutApp = ( props : CheckoutAppProps ) : ReactElement => {
3232 const { containerId, sentryConfig, publicPath, sentrySampleRate } = props ;
3333
34- const checkoutService = useMemo ( ( ) => createCheckoutService ( {
35- locale : getLanguageService ( ) . getLocale ( ) ,
36- shouldWarnMutation : process . env . NODE_ENV === 'development' ,
37- } ) , [ ] ) ;
38- const embeddedStylesheet = useMemo ( ( ) => createEmbeddedCheckoutStylesheet ( ) , [ ] ) ;
39- const embeddedSupport = useMemo ( ( ) => createEmbeddedCheckoutSupport ( getLanguageService ( ) ) , [ ] ) ;
4034 const errorLogger = useMemo ( ( ) => createErrorLogger (
4135 { sentry : sentryConfig } ,
4236 {
@@ -45,6 +39,13 @@ const CheckoutApp = (props: CheckoutAppProps): ReactElement => {
4539 sampleRate : sentrySampleRate || 0.1 ,
4640 } ,
4741 ) , [ ] ) ;
42+ const checkoutService = useMemo ( ( ) => createCheckoutService ( {
43+ locale : getLanguageService ( ) . getLocale ( ) ,
44+ shouldWarnMutation : process . env . NODE_ENV === 'development' ,
45+ errorLogger,
46+ } ) , [ ] ) ;
47+ const embeddedStylesheet = useMemo ( ( ) => createEmbeddedCheckoutStylesheet ( ) , [ ] ) ;
48+ const embeddedSupport = useMemo ( ( ) => createEmbeddedCheckoutSupport ( getLanguageService ( ) ) , [ ] ) ;
4849
4950 useEffect ( ( ) => {
5051 ReactModal . setAppElement ( `#${ containerId } ` ) ;
0 commit comments