🎨 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,7 +50,8 @@ export function breakUpGamemaster(gamemaster) {
// Add to pokemon (filtered - first occurrence OR regional forms)
// Check if this is a regional form by looking at the form string
const form = pokemonSettings?.form;
const isRegionalForm = form && typeof form === 'string'
const isRegionalForm =
form && typeof form === 'string'
? regionCheck.includes(form.split('_')[1]?.toLowerCase())
: false;