Perbaikan Project PPOB

This commit is contained in:
ajat91.sudrajat 2022-01-03 11:11:25 +07:00
parent 2a42e49a00
commit a851ce019e
2 changed files with 3 additions and 1 deletions

View File

@ -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({

View File

@ -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);