From 425d6f56ec0d152b103a752b5cf24c7e69229533 Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Tue, 28 Dec 2021 09:13:59 -1000 Subject: [PATCH] Fix IOU Page --- src/pages/iou/steps/IOUAmountPage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/iou/steps/IOUAmountPage.js b/src/pages/iou/steps/IOUAmountPage.js index b1b671e850aa..1bb9540d0573 100755 --- a/src/pages/iou/steps/IOUAmountPage.js +++ b/src/pages/iou/steps/IOUAmountPage.js @@ -88,7 +88,7 @@ class IOUAmountPage extends React.Component { componentDidMount() { this.focusTextInput(); - this.unsubscribeAppStateSubscription = AppState.addEventListener( + this.appStateSubscription = AppState.addEventListener( 'change', this.dismissKeyboardWhenBackgrounded, ); @@ -103,10 +103,10 @@ class IOUAmountPage extends React.Component { } componentWillUnmount() { - if (!this.unsubscribeAppStateSubscription) { + if (!this.appStateSubscription) { return; } - this.unsubscribeAppStateSubscription(); + this.appStateSubscription.remove(); } dismissKeyboardWhenBackgrounded(nextAppState) {