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 // Save cafe details
const handleSave = async () => { const handleSave = async () => {
let qrPaymentFileCache; let qrPaymentFileCache;
console.log(qrPaymentFile)
if(qrPaymentFile != null) if(qrPaymentFile != null)
qrPaymentFileCache = qrPaymentFile; qrPaymentFileCache = qrPaymentFile;

View File

@@ -257,6 +257,7 @@ export async function saveCafeDetails(cafeId, details) {
} }
// Append qrPayment file if it exists // Append qrPayment file if it exists
console.log(details.qrPaymentFile)
if (details.qrPaymentFile) { if (details.qrPaymentFile) {
formData.append("qrPayment", details.qrPaymentFile); formData.append("qrPayment", details.qrPaymentFile);
} }

View File

@@ -6,9 +6,9 @@ import reportWebVitals from './reportWebVitals';
const root = ReactDOM.createRoot(document.getElementById('root')); const root = ReactDOM.createRoot(document.getElementById('root'));
// Disable console methods // Disable console methods
console.log = () => {}; // console.log = () => {};
console.warn = () => {}; // console.warn = () => {};
console.error = () => {}; // console.error = () => {};
root.render( root.render(
<React.StrictMode> <React.StrictMode>