From 5b58a46ebdf475092cf9f7f1270c6b37f1cd7cd5 Mon Sep 17 00:00:00 2001 From: "Mr. X" Date: Tue, 21 Apr 2020 18:18:39 +0530 Subject: [PATCH] feat: header logo reloads at "/" --- ui/component/header/view.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/component/header/view.jsx b/ui/component/header/view.jsx index 137319e2a..5b81a441c 100644 --- a/ui/component/header/view.jsx +++ b/ui/component/header/view.jsx @@ -133,7 +133,9 @@ const Header = (props: Props) => { className="header__navigation-item header__navigation-item--lbry header__navigation-item--button-mobile" label={__('LBRY')} icon={ICONS.LBRY} - onClick={() => window.scrollTo(0, 0)} + onClick={() => { + if (history.location.pathname === '/') window.location.reload(); + }} {...homeButtonNavigationProps} />