File tree Expand file tree Collapse file tree 2 files changed +21
-21
lines changed
Expand file tree Collapse file tree 2 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 526526
527527 async void Callback (bool status )
528528 {
529- InvokeAsync (() =>
529+ if ( status )
530530 {
531- Communication .ShowLoader = " none" ;
532- Communication .HideTokenList = " " ;
533- Communication .HideTokenSend = " none" ;
534- Communication .ShowPinPanel = " none" ;
535- Communication .Receipt = " none" ;
536-
537- StateHasChanged ();
538-
539- });
540-
531+ var result = await PaymentService .BeginTransaction ();
541532
542- var result = await PaymentService .BeginTransaction ();
533+ if (result != null )
534+ {
535+ await InvokeAsync (() =>
536+ {
537+ Communication .ShowLoader = " none" ;
538+ Communication .HideTokenList = " none" ;
539+ Communication .HideTokenSend = " none" ;
540+ Communication .ShowPinPanel = " none" ;
541+ Communication .Receipt = " flex" ;
542+ Receipt = result ;
543+ StateHasChanged ();
543544
544- if (result != null )
545- {
546- await InvokeAsync (() =>
545+ });
546+ }
547+ }
548+ else
549+ InvokeAsync (() =>
547550 {
548551 Communication .ShowLoader = " none" ;
549- Communication .HideTokenList = " none " ;
552+ Communication .HideTokenList = " " ;
550553 Communication .HideTokenSend = " none" ;
551554 Communication .ShowPinPanel = " none" ;
552- Communication .Receipt = " flex " ;
553- Receipt = result ;
555+ Communication .Receipt = " none " ;
556+
554557 StateHasChanged ();
555558
556559 });
557- }
558560
559561 }
560562
Original file line number Diff line number Diff line change 11@page " /LoginPanel"
22@using System .Net
3- @using System .Timers
43@using System .Numerics
54@using NFTLock .Data
65@using Newtonsoft .Json
5453@code {
5554
5655 private string Password { get ; set ; }
57- System .Timers .Timer aTimer { get ; set ; }
5856 IHardwareService HardwareService { get ; set ; }
5957 ICommunication Communication { get ; set ; }
6058
You can’t perform that action at this time.
0 commit comments