From e381d78a0cbb75b96e620018f57c53aa4232df79 Mon Sep 17 00:00:00 2001 From: everythingonblack Date: Fri, 9 May 2025 02:57:37 +0700 Subject: [PATCH] ok --- src/components/PaymentOptions.js | 1 + src/helpers/cafeHelpers.js | 1 + src/index.js | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/PaymentOptions.js b/src/components/PaymentOptions.js index 2743873..972c230 100644 --- a/src/components/PaymentOptions.js +++ b/src/components/PaymentOptions.js @@ -86,6 +86,7 @@ const SetPaymentQr = ({ shopId, // Save cafe details const handleSave = async () => { let qrPaymentFileCache; + console.log(qrPaymentFile) if(qrPaymentFile != null) qrPaymentFileCache = qrPaymentFile; diff --git a/src/helpers/cafeHelpers.js b/src/helpers/cafeHelpers.js index a4135f2..93cc8fc 100644 --- a/src/helpers/cafeHelpers.js +++ b/src/helpers/cafeHelpers.js @@ -257,6 +257,7 @@ export async function saveCafeDetails(cafeId, details) { } // Append qrPayment file if it exists + console.log(details.qrPaymentFile) if (details.qrPaymentFile) { formData.append("qrPayment", details.qrPaymentFile); } diff --git a/src/index.js b/src/index.js index a8e87ac..6b1560b 100644 --- a/src/index.js +++ b/src/index.js @@ -6,9 +6,9 @@ import reportWebVitals from './reportWebVitals'; const root = ReactDOM.createRoot(document.getElementById('root')); // Disable console methods -console.log = () => {}; -console.warn = () => {}; -console.error = () => {}; +// console.log = () => {}; +// console.warn = () => {}; +// console.error = () => {}; root.render(