From 1cec65bbe0cb60cb6ad5d78d2039acbe88dbd5fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chalifour?= Date: Mon, 20 Jul 2020 11:40:00 +0200 Subject: [PATCH] fix(search): hide content when `disableUserPersonalization --- src/StartScreen.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/StartScreen.tsx b/src/StartScreen.tsx index 3a14a361..70e9f1e8 100644 --- a/src/StartScreen.tsx +++ b/src/StartScreen.tsx @@ -26,11 +26,13 @@ interface StartScreenProps export function StartScreen(props: StartScreenProps) { if (props.state.status === 'idle' && props.hasSuggestions === false) { + if (props.disableUserPersonalization) { + return null; + } + return (
- {!props.disableUserPersonalization && ( -

No recent searches

- )} +

No recent searches

); }