File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const CheckoutForm = () => {
22
22
23
23
const [ orderData , setOrderData ] = useState ( null ) ;
24
24
const [ requestError , setRequestError ] = useState ( null ) ;
25
- const [ orderCompleted , setorderCompleted ] = useState ( false ) ;
25
+ const [ orderCompleted , setorderCompleted ] = useState ( false ) ;
26
26
27
27
// Checkout GraphQL mutation
28
28
const [
@@ -70,7 +70,7 @@ const CheckoutForm = () => {
70
70
71
71
return (
72
72
< >
73
- { cart ? (
73
+ { cart && ! orderCompleted ? (
74
74
< div className = "container mx-auto" >
75
75
{ /* Order*/ }
76
76
< OrderDetails cart = { cart } />
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export const WOO_CONFIG = {
17
17
GRAPHQL_URL : 'http://localhost/wp/graphql' ,
18
18
ALGOLIA_APP_ID : '7L9M5Y0B1K' ,
19
19
ALGOLIA_PUBLIC_API_KEY : '925cc92373120f1bf477bb8ce0e71649' ,
20
+ ALGOLIA_INDEX_NAME : 'dfweb' ,
20
21
} ;
21
22
22
23
You can’t perform that action at this time.
0 commit comments