Skip to content

Commit

Permalink
Merge pull request #893 from Dygmalab/fixRenderOldRaiseBkp
Browse files Browse the repository at this point in the history
fix: fixed rendering issue with old backups without icons
  • Loading branch information
alexpargon authored Sep 24, 2024
2 parents 31216d9 + b6d250b commit e617dd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const ListModifiersKey = ({ keyCode, size = "xs", selectedKey }: ListModifiersPr
log.info("New Data: ", selectedKey);
const mods = parseModifs(keyCode);
setModifiers(mods);
const altVisual = selectedKey.alt;
const altVisual = selectedKey?.alt;
const isHyper = [0, 1, 2, 4].every(mod => mods.includes(mod));
const isMeh = [0, 1, 2].every(mod => mods.includes(mod)) && !mods.includes(4);
setModifiersState({ isMeh, isHyper, altVisual });
Expand Down

0 comments on commit e617dd4

Please sign in to comment.