Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 8321512

Browse files
yatebryanvu
authored andcommitted
replace lightning:// with lightning:
1 parent da4b41f commit 8321512

File tree

1 file changed

+1
-0
lines changed
  • packages/lightning-components/QRCode

1 file changed

+1
-0
lines changed

packages/lightning-components/QRCode/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const QRCode = {
1111
return <div dangerouslySetInnerHTML={{ __html: svg }} />
1212
},
1313
lightning: ({ paymentRequest }) => {
14+
paymentRequest = paymentRequest.replace('lightning://', 'lightning:')
1415
const svg = qrImage.imageSync(paymentRequest, { type: 'svg' })
1516

1617
// eslint-disable-next-line react/no-danger

0 commit comments

Comments
 (0)