From fe673527ad4c62bcecad3e1d6b326a14719cf1d7 Mon Sep 17 00:00:00 2001 From: skylarbarrera Date: Wed, 16 Aug 2023 14:31:23 -0400 Subject: [PATCH] appstate: optional chaining --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index dad931a7c79..8e4b1b8df51 100644 --- a/src/App.js +++ b/src/App.js @@ -137,7 +137,7 @@ class OldApp extends Component { InteractionManager.runAfterInteractions(() => { rainbowTokenList.update(); }); - AppState.addEventListener('change', this.handleAppStateChange); + AppState?.addEventListener('change', this?.handleAppStateChange); rainbowTokenList.on('update', this.handleTokenListUpdate); appEvents.on('transactionConfirmed', this.handleTransactionConfirmed);