it kinda does le wookrdkkkdjdsolkhghbalkjblkgjvcb lkshjdvb kjdbk
This commit is contained in:
		| @@ -60,17 +60,20 @@ export default function App() { | |||||||
|         else { |         else { | ||||||
|             data.prodQuant ={}; |             data.prodQuant ={}; | ||||||
|             cart.map((p) => { |             cart.map((p) => { | ||||||
|                 data.prodQuant[p.id] = p.quantity; |                 data.prodQuant[`${p.id}`] = p.quantity; | ||||||
|             }); |             }); | ||||||
|  |  | ||||||
|             console.log(data); |  | ||||||
|              |              | ||||||
|             const jsonData = JSON.stringify(data); |             const jsonData = JSON.stringify(data); | ||||||
|              |              | ||||||
|  |             console.log(jsonData); | ||||||
|             fetch("https://localhost:7292/api/Invoice", { |             fetch("https://localhost:7292/api/Invoice", { | ||||||
|                 mode: "cors", |                 mode: "cors", | ||||||
|                 method: "POST", |                 method: "POST", | ||||||
|                 credentials: "include", |                 credentials: "include", | ||||||
|  |                 headers:{ | ||||||
|  |                     'Content-Type': 'application/json' | ||||||
|  |                 }, | ||||||
|                 body: jsonData |                 body: jsonData | ||||||
|             }).then((response) => { |             }).then((response) => { | ||||||
|                 console.log(response); |                 console.log(response); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user