Skip to content

Commit

Permalink
check for key in layoutEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
lanchana committed May 30, 2022
1 parent 1841722 commit 08412ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/navigation/wallet/screens/KeyOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ const KeyOverview: React.FC<KeyOverviewScreenProps> = ({navigation, route}) => {
Object.values(keys).filter(k => k.backupComplete).length > 1;

useLayoutEffect(() => {
if (!key) {
return;
}

navigation.setOptions({
headerTitle: () => {
return (
Expand Down

0 comments on commit 08412ea

Please sign in to comment.