From e06a653e1f1fad19ad4f98c999e5b278b9f17b19 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Fri, 23 Apr 2021 16:05:35 +0300 Subject: [PATCH] fix Signed-off-by: Jari Kolehmainen --- src/renderer/components/hotbar/hotbar-menu.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/hotbar/hotbar-menu.tsx b/src/renderer/components/hotbar/hotbar-menu.tsx index 8f13c6a7db..0abc406d06 100644 --- a/src/renderer/components/hotbar/hotbar-menu.tsx +++ b/src/renderer/components/hotbar/hotbar-menu.tsx @@ -44,8 +44,9 @@ export class HotbarMenu extends React.Component { render() { const { className } = this.props; - const hotbar = HotbarStore.getInstance(); - const hotbarIndex = HotbarStore.getInstance().activeHotbarIndex + 1; + const hotbarStore = HotbarStore.getInstance(); + const hotbar = hotbarStore.getActive(); + const hotbarIndex = hotbarStore.activeHotbarIndex + 1; return (