Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Xelus22 committed Nov 18, 2023
1 parent fe2341b commit 03fd834
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/panes/configure-panes/keycode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,14 @@ export const KeycodePane: FC = () => {
const selectedKeyDefinitions = useAppSelector(getSelectedKeyDefinitions);
const {basicKeyToByte} = useAppSelector(getBasicKeyToByte);
const macroCount = useAppSelector(getMacroCount);
let numMacros = 0;

if (!macroCount) {
numMacros = 16;
}
console.log(macroCount);
const KeycodeCategories = useMemo(
() => generateKeycodeCategories(basicKeyToByte, macroCount),
() => generateKeycodeCategories(basicKeyToByte, numMacros),
[basicKeyToByte, macroCount],
);

Expand Down

0 comments on commit 03fd834

Please sign in to comment.