diff --git a/src/modules/wallet/components/SendDialog.vue b/src/modules/wallet/components/SendDialog.vue index ea74808..c7dc4f1 100644 --- a/src/modules/wallet/components/SendDialog.vue +++ b/src/modules/wallet/components/SendDialog.vue @@ -86,8 +86,14 @@ function closeScanner() { } function handleScanResult(result: string) { - // Set the scanned result in the destination field - setFieldValue('destination', result) + // Clean up the scanned result by removing lightning: prefix if present + let cleanedResult = result + if (result.toLowerCase().startsWith('lightning:')) { + cleanedResult = result.substring(10) // Remove "lightning:" prefix + } + + // Set the cleaned result in the destination field + setFieldValue('destination', cleanedResult) closeScanner() toastService?.success('QR code scanned successfully!') }