diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-03-06 11:59:03 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-03-06 11:59:03 +0700 |
| commit | 78d02a2392924d5d4a21206fb52f627251883af8 (patch) | |
| tree | b1cda7f12961508065b5ddedcfa757ea6ec0ff4e /src/lib/checkout/components/FinishCheckout.jsx | |
| parent | 66f1fb98cf450c98fca14fd76809ff99c52533e6 (diff) | |
fix
Diffstat (limited to 'src/lib/checkout/components/FinishCheckout.jsx')
| -rw-r--r-- | src/lib/checkout/components/FinishCheckout.jsx | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/lib/checkout/components/FinishCheckout.jsx b/src/lib/checkout/components/FinishCheckout.jsx index f5346d67..33c0d46a 100644 --- a/src/lib/checkout/components/FinishCheckout.jsx +++ b/src/lib/checkout/components/FinishCheckout.jsx @@ -1,17 +1,6 @@ import Link from '@/core/components/elements/Link/Link' -import axios from 'axios' -import { useEffect } from 'react' const FinishCheckout = ({ query }) => { - useEffect(() => { - if (query?.order_id) { - console.log(`${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/finish-checkout?orderName=${query.order_id}`); - axios.post( - `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/finish-checkout?orderId=${query.order_id}` - ) - } - }, [query]) - return ( <div className='p-4'> <div className='rounded-xl bg-yellow_r-4 text-center border border-yellow_r-7'> |
