From 674217c763c1f89219bd31232227635b2a62c895 Mon Sep 17 00:00:00 2001 From: michael1011 Date: Fri, 6 Dec 2024 13:20:18 +0100 Subject: [PATCH] fix: JPEG refund files --- src/pages/Refund.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Refund.tsx b/src/pages/Refund.tsx index bfd985aa..6f7edaa7 100644 --- a/src/pages/Refund.tsx +++ b/src/pages/Refund.tsx @@ -68,7 +68,7 @@ const Refund = () => { setSwapFound(null); setRefundInvalid(false); - if (inputFile.type === "image/png") { + if (["image/png", "image/jpg", "image/jpeg"].includes(inputFile.type)) { QrScanner.scanImage(inputFile, { returnDetailedScanResult: true }) .then( async (result) => @@ -226,7 +226,7 @@ const Refund = () => { type="file" id="refundUpload" data-testid="refundUpload" - accept="application/json,image/png" + accept="application/json,image/png,imagine/jpg,image/jpeg" onChange={(e) => uploadChange(e)} />