diff options
Diffstat (limited to 'packages/taler-wallet-core/src/operations/transactions.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/transactions.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts index b3bc0ebfc..b6dc2e8bd 100644 --- a/packages/taler-wallet-core/src/operations/transactions.ts +++ b/packages/taler-wallet-core/src/operations/transactions.ts @@ -1887,19 +1887,19 @@ export interface TransitionInfo { export function notifyTransition( ws: InternalWalletState, transactionId: string, - ti: TransitionInfo | undefined, + transitionInfo: TransitionInfo | undefined, ): void { if ( - ti && + transitionInfo && !( - ti.oldTxState.major === ti.newTxState.major && - ti.oldTxState.minor === ti.newTxState.minor + transitionInfo.oldTxState.major === transitionInfo.newTxState.major && + transitionInfo.oldTxState.minor === transitionInfo.newTxState.minor ) ) { ws.notify({ type: NotificationType.TransactionStateTransition, - oldTxState: ti.oldTxState, - newTxState: ti.newTxState, + oldTxState: transitionInfo.oldTxState, + newTxState: transitionInfo.newTxState, transactionId, }); } |