From 5937ac8c91a15e6bc8daf8d259eb9cd842b86d86 Mon Sep 17 00:00:00 2001
From: mat <github@matdoes.dev>
Date: Sat, 19 Mar 2022 19:56:28 -0500
Subject: Squashed commit of the following:

commit 5edaa4376f37890fb1ddd6493b0ac778cebe927e
Author: mat <github@matdoes.dev>
Date:   Sat Mar 19 19:55:56 2022 -0500

    Change stuff to work with my breaking changes
---
 src/lib/sections/Zones.svelte | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

(limited to 'src/lib/sections/Zones.svelte')

diff --git a/src/lib/sections/Zones.svelte b/src/lib/sections/Zones.svelte
index 428ab79..1ea3f0d 100644
--- a/src/lib/sections/Zones.svelte
+++ b/src/lib/sections/Zones.svelte
@@ -4,22 +4,20 @@
 
 	export let data: CleanMemberProfile
 
-	let zonesVisitedCount = data.member.visited_zones
-		? data.member.visited_zones?.filter(z => z.visited).length
-		: 0
+	let zonesVisitedCount = data.member.zones ? data.member.zones?.filter(z => z.visited).length : 0
 </script>
 
-{#if data.member.visited_zones}
+{#if data.member.zones}
 	<p class="zones-visited-text">
 		<span class="zones-visited-number">
-			<b>{zonesVisitedCount}</b>/{data.member.visited_zones.length} zones visited
+			<b>{zonesVisitedCount}</b>/{data.member.zones.length} zones visited
 		</span>
 	</p>
 	<ul>
-		{#each data.member.visited_zones.filter(z => z.visited) as zone}
+		{#each data.member.zones.filter(z => z.visited) as zone}
 			<li>{cleanId(zone.name)}</li>
 		{/each}
-		{#each data.member.visited_zones.filter(z => !z.visited) as zone}
+		{#each data.member.zones.filter(z => !z.visited) as zone}
 			<li class="unvisited-zone">{cleanId(zone.name)}</li>
 		{/each}
 	</ul>
-- 
cgit 

