This commit is contained in:
everythingonblack
2025-05-09 02:57:37 +07:00
parent 47f43f05f9
commit e381d78a0c
3 changed files with 5 additions and 3 deletions

View File

@@ -86,6 +86,7 @@ const SetPaymentQr = ({ shopId,
// Save cafe details
const handleSave = async () => {
let qrPaymentFileCache;
console.log(qrPaymentFile)
if(qrPaymentFile != null)
qrPaymentFileCache = qrPaymentFile;

View File

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

View File

@@ -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(
<React.StrictMode>