message: Change it to an undefined check
diff: @@ -98,6 +98,11 @@ export function getTotalModStatChanges(
  Strength: 0,
  };
  + // This should only happen on initialisation if the store is undefined.
  + if (characterClass === undefined) {
  + return totals;
  + }
  +
  const flatMods = Object.values(lockedArmor2Mods)
  .flat()
  .filter((mod): mod is LockedMod => Boolean(mod));
  