ok
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user