Skip to content

Commit

Permalink
chore: rm custom validity calls
Browse files Browse the repository at this point in the history
these messages are never displayed
  • Loading branch information
jackstar12 committed Jan 12, 2025
1 parent 57e05d0 commit 7969ca9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/pages/RefundExternal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,12 @@ export const RefundBtcLike = () => {
} catch (e) {
log.warn("Refund json validation failed", e);
setRefundInvalid(RefundError.InvalidData);
input.setCustomValidity(t("invalid_refund_file"));
}
};

const uploadChange = async (e: Event) => {
const input = e.currentTarget as HTMLInputElement;
const inputFile = input.files[0];
input.setCustomValidity("");
setRefundJson(null);
setRefundInvalid(undefined);

Expand All @@ -74,7 +72,6 @@ export const RefundBtcLike = () => {
} catch (e) {
log.error("invalid QR code upload", e);
setRefundInvalid(RefundError.InvalidData);
input.setCustomValidity(t("invalid_refund_file"));
}
} else {
try {
Expand All @@ -83,7 +80,6 @@ export const RefundBtcLike = () => {
} catch (e) {
log.error("invalid file upload", e);
setRefundInvalid(RefundError.InvalidData);
input.setCustomValidity(t("invalid_refund_file"));
}
}
};
Expand Down

0 comments on commit 7969ca9

Please sign in to comment.