From c38d14a4320b912c144513a0fcbb07fb5b7a954a Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Wed, 28 Jan 2026 19:03:18 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Reformat=20conditional=20logic?= =?UTF-8?q?=20for=20improved=20readability=20in=20regional=20form=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pokedex.online/src/utilities/gamemaster-utils.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/websites/pokedex.online/src/utilities/gamemaster-utils.js b/code/websites/pokedex.online/src/utilities/gamemaster-utils.js index f9e0802..9c28591 100644 --- a/code/websites/pokedex.online/src/utilities/gamemaster-utils.js +++ b/code/websites/pokedex.online/src/utilities/gamemaster-utils.js @@ -50,9 +50,10 @@ 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' - ? regionCheck.includes(form.split('_')[1]?.toLowerCase()) - : false; + const isRegionalForm = + form && typeof form === 'string' + ? regionCheck.includes(form.split('_')[1]?.toLowerCase()) + : false; if ( !acc.pokemonSeen.has(pokemonId) ||