Perbaikan Project PPOB
This commit is contained in:
		| @@ -54,6 +54,7 @@ export const Product = observer(() => { | |||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   const handleBuyProduct = async (data, productCode) => { |   const handleBuyProduct = async (data, productCode) => { | ||||||
|  |     //console.log(data) | ||||||
|     modalLoader.setLoading(true); |     modalLoader.setLoading(true); | ||||||
|     try { |     try { | ||||||
|       const response = await store.transaction.buyProd({ |       const response = await store.transaction.buyProd({ | ||||||
|   | |||||||
| @@ -178,7 +178,8 @@ export class Transaction { | |||||||
|  |  | ||||||
|   async buyProd(data) { |   async buyProd(data) { | ||||||
|     try { |     try { | ||||||
|       const response = await http.post("//transaction/order-prod").send(data); |       const response = await http.post("/transaction/order-prod").send(data); | ||||||
|  |       console.log(response) | ||||||
|       return response; |       return response; | ||||||
|     } catch (e) { |     } catch (e) { | ||||||
|       console.error(e); |       console.error(e); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user