diff --git a/package.json b/package.json index b21ced2d..a6fc5a4c 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/screens/WalletScreen.tsx b/src/screens/WalletScreen.tsx index 0256f988..5f726963 100644 --- a/src/screens/WalletScreen.tsx +++ b/src/screens/WalletScreen.tsx @@ -123,11 +123,12 @@ export const WalletScreen: FC = 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) } }, [])