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 (