ok
This commit is contained in:
@@ -164,6 +164,22 @@ export async function saveCafeDetails(cafeId, details) {
|
||||
try {
|
||||
const formData = new FormData();
|
||||
|
||||
// Append qrBackground file if it exists
|
||||
if (details.fontsize) {
|
||||
formData.append("fontsize", details.fontsize);
|
||||
}
|
||||
|
||||
// Append qrBackground file if it exists
|
||||
if (details.fontfamily) {
|
||||
formData.append("fontfamily", details.fontfamily);
|
||||
}
|
||||
|
||||
// Append qrBackground file if it exists
|
||||
if (details.fontPosition) {
|
||||
formData.append("fontxposition", details.fontPosition.left);
|
||||
formData.append("fontyposition", details.fontPosition.top);
|
||||
}
|
||||
|
||||
// Append qrBackground file if it exists
|
||||
if (details.qrBackgroundFile) {
|
||||
formData.append("qrBackground", details.qrBackgroundFile);
|
||||
|
||||
Reference in New Issue
Block a user