🎨 Reformat conditional logic for improved readability in regional form check
This commit is contained in:
@@ -50,7 +50,8 @@ 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 =
|
||||||
|
form && typeof form === 'string'
|
||||||
? regionCheck.includes(form.split('_')[1]?.toLowerCase())
|
? regionCheck.includes(form.split('_')[1]?.toLowerCase())
|
||||||
: false;
|
: false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user