v1.5.82 - bug fixes

This commit is contained in:
Azgaar 2021-03-01 17:56:51 +03:00
parent 2f70df6c59
commit 4fdb265b56
7 changed files with 26 additions and 606 deletions

View file

@ -488,7 +488,7 @@
const getShield = function(culture, state) {
const emblemShape = document.getElementById("emblemShape");
const shapeGroup = emblemShape.selectedOptions[0].parentNode.label;
const shapeGroup = emblemShape.selectedOptions[0]?.parentNode.label || "Diversiform";
if (shapeGroup !== "Diversiform") return emblemShape.value;
if (emblemShape.value === "state" && state && pack.states[state].coa) return pack.states[state].coa.shield;