From caae63b44bf7a9513fa8c3e6424eed293c08ab85 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 8 Dec 2020 11:42:11 -0500 Subject: [PATCH] refresh homepage if clicking 'home' while on the homepage --- ui/component/sideNavigation/view.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/component/sideNavigation/view.jsx b/ui/component/sideNavigation/view.jsx index f4c637398..3653b93e7 100644 --- a/ui/component/sideNavigation/view.jsx +++ b/ui/component/sideNavigation/view.jsx @@ -20,6 +20,9 @@ const HOME = { title: 'Home', link: `/`, icon: ICONS.HOME, + onClick: () => { + if (window.location.pathname === '/') window.location.reload(); + }, }; const RECENT_FROM_FOLLOWING = {