From 1904aa3bff3a13ae2095016b11053ad026ea58db Mon Sep 17 00:00:00 2001 From: Nobatgeldi Date: Wed, 11 Oct 2023 04:33:52 +0300 Subject: [PATCH] order bug fix --- src/covisart/Product.js | 4 ++-- src/covisart/system/OrderRequest.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/covisart/Product.js b/src/covisart/Product.js index afd6305..6deffd2 100644 --- a/src/covisart/Product.js +++ b/src/covisart/Product.js @@ -11,7 +11,7 @@ import { useSnapshot } from 'valtio' import { state } from './store' import Configuration from './Configuration' import ReactGA from "react-ga4"; - +import { Order } from './system/OrderRequest'; const Product = () => { const [selectedTab, setSelectedTab] = useState(0); @@ -47,7 +47,7 @@ const Product = () => { const handleSubmit = event => { event.preventDefault(); // 👈️ prevent page refresh - uploadData(state) + Order(state) openNotification('bottomRight') }; return ( diff --git a/src/covisart/system/OrderRequest.js b/src/covisart/system/OrderRequest.js index 3a9c680..554898f 100644 --- a/src/covisart/system/OrderRequest.js +++ b/src/covisart/system/OrderRequest.js @@ -1,6 +1,6 @@ import Axios from "axios"; -export const uploadData = (state) => { +export const Order = (state) => { const data = { email: state.email, name: state.name,