Skip to content

Commit

Permalink
display amount over activity invoice QR
Browse files Browse the repository at this point in the history
  • Loading branch information
myxmaster committed Oct 8, 2023
1 parent 62a4881 commit 4bff79a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/CollapsedQR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default class CollapsedQR extends React.Component<

return (
<React.Fragment>
{satAmount && (
{satAmount != null && (
<View
style={{
flexDirection: 'column',
Expand Down
8 changes: 6 additions & 2 deletions views/Invoice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export default class InvoiceView extends React.Component<InvoiceProps> {
cltv_expiry,
expirationDate,
getPaymentRequest,
getKeysendMessage
getKeysendMessage,
getAmount
} = invoice;
const privateInvoice = invoice.private;
const noteKey = getRPreimage || payment_hash;
Expand All @@ -68,7 +69,10 @@ export default class InvoiceView extends React.Component<InvoiceProps> {
<Icon
name="qr-code"
onPress={() => {
navigation.navigate('QR', { value: getPaymentRequest });
navigation.navigate('QR', {
value: getPaymentRequest,
satAmount: getAmount
});
}}
color={themeColor('text')}
underlayColor="transparent"
Expand Down

0 comments on commit 4bff79a

Please sign in to comment.