Skip to content

Commit

Permalink
Send notification on completed topup (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
minibits-cash committed Sep 20, 2023
1 parent 9fc1302 commit 2ebc96d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minibits_wallet",
"version": "0.1.2-beta.5",
"version": "0.1.2-beta.6",
"private": true,
"scripts": {
"android:clean": "cd android && ./gradlew clean",
Expand Down
5 changes: 3 additions & 2 deletions src/screens/WalletScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,12 @@ export const WalletScreen: FC<WalletScreenProps> = observer(

EventEmitter.on('receiveTokenCompleted', onReceiveTokenCompleted)
EventEmitter.on('receivePaymentRequest', onReceivePaymentRequest)
EventEmitter.on('topupCompleted', onTopupCompleted)
EventEmitter.on('topupCompleted', onReceiveTopupCompleted)

return () => {
EventEmitter.off('receiveTokenCompleted', onReceiveTokenCompleted)
EventEmitter.off('receivePaymentRequest', onReceivePaymentRequest)
EventEmitter.off('receivePaymentRequest', onReceivePaymentRequest)
EventEmitter.off('topupCompleted', onReceiveTopupCompleted)
}
}, [])

Expand Down

0 comments on commit 2ebc96d

Please sign in to comment.