Don't include second faction if the card type doesn't have it

This commit is contained in:
Adam Goldsmith 2021-09-08 13:18:56 -04:00
parent 25b4628348
commit 2b40a70299
1 changed files with 2 additions and 1 deletions

View File

@ -139,7 +139,8 @@ if (subtitle && subtitle != '') {
card_data.subname = subtitle;
}
if (Component.settings.get('CardClass2') != 'None') {
var faction2 = Component.settings.get('CardClass2');
if (faction2 && faction2 != 'None') {
card_data.faction2_code = String(Component.settings.get('CardClass2')).toLowerCase();
}