@@ -938,16 +938,16 @@ export class LoadedAppClass extends Component<LoadedAppClassProps, LoadedAppClas
938938 this . state . valueTransfersTotal !== null &&
939939 this . state . valueTransfersTotal > 0 &&
940940 this . state . valueTransfers
941- . filter ( ( vtOld : ValueTransferType ) => vtOld . confirmations < GlobalConst . minConfirmations )
941+ . filter ( ( vtOld : ValueTransferType ) => vtOld . confirmations === 0 ) // not confirmed
942942 . forEach ( ( vtOld : ValueTransferType ) => {
943943 const vtNew = valueTransfers . filter (
944944 ( vt : ValueTransferType ) =>
945945 vt . txid === vtOld . txid && vt . address === vtOld . address && vt . poolType === vtOld . poolType ,
946946 ) ;
947947 //console.log('old', vtOld);
948948 //console.log('new', vtNew);
949- // the ValueTransfer is confirmed
950- if ( vtNew . length > 0 && vtNew [ 0 ] . confirmations >= GlobalConst . minConfirmations ) {
949+ // the ValueTransfer is confirmed when the confirmations are > 0
950+ if ( vtNew . length > 0 && vtNew [ 0 ] . confirmations > 0 ) {
951951 let message : string = '' ;
952952 let title : string = '' ;
953953 if ( vtNew [ 0 ] . kind === ValueTransferKindEnum . Received && vtNew [ 0 ] . amount > 0 ) {
@@ -1026,17 +1026,18 @@ export class LoadedAppClass extends Component<LoadedAppClassProps, LoadedAppClas
10261026 }
10271027 }
10281028 // the ValueTransfer is gone -> Likely Reverted by the server
1029- if ( vtNew . length === 0 ) {
1030- createAlert (
1031- this . setBackgroundError ,
1032- this . addLastSnackbar ,
1033- [ this . screenName ] ,
1034- this . state . translate ( 'loadedapp.send-menu' ) as string ,
1035- this . state . translate ( 'loadedapp.valuetransfer-reverted' ) as string ,
1036- true ,
1037- this . state . translate ,
1038- ) ;
1039- }
1029+ // this is really confusing...
1030+ //if (vtNew.length === 0) {
1031+ // createAlert(
1032+ // this.setBackgroundError,
1033+ // this.addLastSnackbar,
1034+ // [this.screenName],
1035+ // this.state.translate('loadedapp.send-menu') as string,
1036+ // this.state.translate('loadedapp.valuetransfer-reverted') as string,
1037+ // true,
1038+ // this.state.translate,
1039+ // );
1040+ //}
10401041 } ) ;
10411042 // if some tx is confirmed the UI needs some time to
10421043 // acomodate the bottom tabs.
@@ -1931,7 +1932,8 @@ export class LoadedAppClass extends Component<LoadedAppClassProps, LoadedAppClas
19311932 ! ! totalBalance &&
19321933 (
19331934 ( totalBalance . totalOrchardBalance > 0 && totalBalance . confirmedOrchardBalance === 0 ) ||
1934- ( totalBalance . totalSaplingBalance > 0 && totalBalance . confirmedSaplingBalance === 0 )
1935+ ( totalBalance . totalSaplingBalance > 0 && totalBalance . confirmedSaplingBalance === 0 ) ||
1936+ ( totalBalance . totalTransparentBalance > 0 && totalBalance . confirmedTransparentBalance === 0 )
19351937 ) &&
19361938 somePending
19371939 ) {
0 commit comments