From d17bd24419a12f4acc92440b937123cb276ea2d6 Mon Sep 17 00:00:00 2001 From: Wojciech Mista Date: Thu, 13 Jan 2022 15:03:19 +0100 Subject: [PATCH] fix shop version loading (#1734) --- src/configuration/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/configuration/index.tsx b/src/configuration/index.tsx index 36f40719c..fd36fd1ee 100644 --- a/src/configuration/index.tsx +++ b/src/configuration/index.tsx @@ -250,10 +250,11 @@ export function createConfigurationMenu(intl: IntlShape): MenuSection[] { export const configurationMenuUrl = "/configuration/"; export const ConfigurationSection: React.FC = () => { - const { version: coreVersion } = useShop(); + const shop = useShop(); + const versions = { dashboardVersion, - coreVersion + coreVersion: shop?.version ?? "" }; const navigate = useNavigator();