Skip to content

Commit

Permalink
order bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nobatgeldi committed Oct 11, 2023
1 parent f2b5e04 commit 1904aa3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/covisart/Product.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -47,7 +47,7 @@ const Product = () => {
const handleSubmit = event => {
event.preventDefault(); // 👈️ prevent page refresh

uploadData(state)
Order(state)
openNotification('bottomRight')
};
return (
Expand Down
2 changes: 1 addition & 1 deletion src/covisart/system/OrderRequest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Axios from "axios";

export const uploadData = (state) => {
export const Order = (state) => {
const data = {
email: state.email,
name: state.name,
Expand Down

0 comments on commit 1904aa3

Please sign in to comment.