From 08412ea21b4d0d7ecf3954de289b2866adcd9357 Mon Sep 17 00:00:00 2001 From: lanchana shivananda Date: Mon, 30 May 2022 17:08:30 -0400 Subject: [PATCH] check for key in layoutEffect --- src/navigation/wallet/screens/KeyOverview.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/navigation/wallet/screens/KeyOverview.tsx b/src/navigation/wallet/screens/KeyOverview.tsx index dfbc433ca..8225c4bd8 100644 --- a/src/navigation/wallet/screens/KeyOverview.tsx +++ b/src/navigation/wallet/screens/KeyOverview.tsx @@ -228,6 +228,10 @@ const KeyOverview: React.FC = ({navigation, route}) => { Object.values(keys).filter(k => k.backupComplete).length > 1; useLayoutEffect(() => { + if (!key) { + return; + } + navigation.setOptions({ headerTitle: () => { return (