Skip to content

Commit

Permalink
fix: JPEG refund files
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Dec 6, 2024
1 parent f53a131 commit 674217c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Refund.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down Expand Up @@ -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)}
/>
<Show
Expand Down

0 comments on commit 674217c

Please sign in to comment.