🎨 Reformat conditional logic for improved readability in regional form check

This commit is contained in:
2026-01-28 19:03:18 +00:00
parent 6f060001d5
commit c38d14a432

View File

@@ -50,9 +50,10 @@ export function breakUpGamemaster(gamemaster) {
// Add to pokemon (filtered - first occurrence OR regional forms) // Add to pokemon (filtered - first occurrence OR regional forms)
// Check if this is a regional form by looking at the form string // Check if this is a regional form by looking at the form string
const form = pokemonSettings?.form; const form = pokemonSettings?.form;
const isRegionalForm = form && typeof form === 'string' const isRegionalForm =
? regionCheck.includes(form.split('_')[1]?.toLowerCase()) form && typeof form === 'string'
: false; ? regionCheck.includes(form.split('_')[1]?.toLowerCase())
: false;
if ( if (
!acc.pokemonSeen.has(pokemonId) || !acc.pokemonSeen.has(pokemonId) ||