mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 12:54:38 +00:00
minor fix
This commit is contained in:
parent
72a2e48e1a
commit
81cf08a0ad
1 changed files with 7 additions and 1 deletions
|
@ -226,7 +226,13 @@ class LightningSendPage extends BasePage {
|
|||
|
||||
final sdk = await BreezSDK();
|
||||
|
||||
final InputType inputType = await sdk.parseInput(input: bolt11Controller.text);
|
||||
late InputType inputType;
|
||||
|
||||
try {
|
||||
inputType = await sdk.parseInput(input: bolt11Controller.text);
|
||||
} catch (_) {
|
||||
throw Exception("Unknown input type");
|
||||
}
|
||||
|
||||
if (inputType is InputType_Bolt11) {
|
||||
final bolt11 = await sdk.parseInvoice(bolt11Controller.text);
|
||||
|
|
Loading…
Reference in a new issue