Perbaikan Project PPOB
This commit is contained in:
parent
2a42e49a00
commit
a851ce019e
|
@ -54,6 +54,7 @@ export const Product = observer(() => {
|
|||
};
|
||||
|
||||
const handleBuyProduct = async (data, productCode) => {
|
||||
//console.log(data)
|
||||
modalLoader.setLoading(true);
|
||||
try {
|
||||
const response = await store.transaction.buyProd({
|
||||
|
|
|
@ -178,7 +178,8 @@ export class Transaction {
|
|||
|
||||
async buyProd(data) {
|
||||
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;
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
|
|
Loading…
Reference in New Issue
Block a user