Skip to content

Commit

Permalink
fix: dont show refund button after swap has been refunded
Browse files Browse the repository at this point in the history
  • Loading branch information
jackstar12 committed Jan 9, 2025
1 parent 2b95b9f commit 52b9097
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/pages/RefundExternal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,18 @@ const RefundBtcLike = () => {
accept="application/json,image/png,imagine/jpg,image/jpeg"
onChange={(e) => uploadChange(e)}
/>
<hr />
<RefundButton
swap={refundJson}
setRefundTxId={setRefundTxId}
buttonOverride={
refundInvalid() == RefundError.InvalidData
? t("invalid_refund_file")
: undefined
}
/>
<Show when={refundTxId() === ""}>
<hr />
<RefundButton
swap={refundJson}
setRefundTxId={setRefundTxId}
buttonOverride={
refundInvalid() == RefundError.InvalidData
? t("invalid_refund_file")
: undefined
}
/>
</Show>
<Show when={refundTxId() !== ""}>
<hr />
<p>{t("refunded")}</p>
Expand Down

0 comments on commit 52b9097

Please sign in to comment.