File tree Expand file tree Collapse file tree 3 files changed +3295
-3123
lines changed
apps/frontend/src/components Expand file tree Collapse file tree 3 files changed +3295
-3123
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,17 @@ export const CheckPayment: FC<{
88 check : string ;
99 mutate : ( ) => void ;
1010 children : ReactNode ;
11+ } > = ( props ) => {
12+ if ( ! props . check ) {
13+ return < > { props . children } </ > ;
14+ }
15+ return < CheckPaymentInner { ...props } /> ;
16+ } ;
17+
18+ export const CheckPaymentInner : FC < {
19+ check : string ;
20+ mutate : ( ) => void ;
21+ children : ReactNode ;
1122} > = ( props ) => {
1223 const [ showLoader , setShowLoader ] = useState ( true ) ;
1324 const fetch = useFetch ( ) ;
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export const LayoutComponent = ({ children }: { children: ReactNode }) => {
7777 < MantineWrapper >
7878 < ToolTip />
7979 < Toaster />
80- < CheckPayment check = { searchParams . get ( 'check' ) ! } mutate = { mutate } >
80+ < CheckPayment check = { searchParams . get ( 'check' ) || '' } mutate = { mutate } >
8181 < ShowMediaBoxModal />
8282 < ShowLinkedinCompany />
8383 < MediaSettingsLayout />
You can’t perform that action at this time.
0 commit comments