Skip to content

Commit

Permalink
Frontend.XF: fix recently introduced crash
Browse files Browse the repository at this point in the history
Somehow mainLayout was still queried at the click-handler
when it had already been at the SendPage class level. This
should have been done in [1] ([2]).

[1] 2d3b90c
[2] 262348b
  • Loading branch information
knocte committed Apr 20, 2024
1 parent 22bb448 commit 2857266
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/GWallet.Frontend.XF/SendPage.xaml.fs
Expand Up @@ -754,7 +754,6 @@ type SendPage(account: IAccount, receivePage: Page, newReceivePageFunc: unit->Pa
} |> FrontendHelpers.DoubleCheckCompletionAsync false

member self.OnSendOrSignButtonClicked(_sender: Object, _args: EventArgs): unit =
let mainLayout = base.FindByName<StackLayout>("mainLayout")
let amountToSend = mainLayout.FindByName<Entry>("amountToSend")
let destinationAddress = destinationAddressEntry.Text

Expand Down

0 comments on commit 2857266

Please sign in to comment.