Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
feat: remove toggle currency button when invoice is created
Browse files Browse the repository at this point in the history
  • Loading branch information
IgboPharaoh authored Mar 23, 2023
1 parent 9d51641 commit cdd9628
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions components/ParsePOSPayment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,16 @@ function ParsePayment({ defaultWalletCurrency, walletId, dispatch, state }: Prop
>
{unit === AmountUnit.Cent ? valueInSats : valueInSats.slice(1, -1)}
</div>
<button title="toggle currency" onClick={() => toggleCurrency()}>
<Image
src="/icons/convert-icon.svg"
alt="convert to SAT/USD icon"
width="24"
height="24"
/>
</button>
{state.createdInvoice ? null : (
<button title="toggle currency" onClick={() => toggleCurrency()}>
<Image
src="/icons/convert-icon.svg"
alt="convert to SAT/USD icon"
width="24"
height="24"
/>
</button>
)}
</div>

<Memo createdInvoice={state.createdInvoice} />
Expand Down

0 comments on commit cdd9628

Please sign in to comment.