From f7bb04d21843948be4d1fc29b1e4e59c249de473 Mon Sep 17 00:00:00 2001 From: NilsUeter Date: Sun, 7 May 2023 12:13:38 +0200 Subject: [PATCH] fix tyranic colors --- src/Roster.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Roster.jsx b/src/Roster.jsx index 71c31b9..234a081 100644 --- a/src/Roster.jsx +++ b/src/Roster.jsx @@ -9,17 +9,20 @@ export const Roster = ({ roster }) => { return null; } const { name, cost, forces } = roster; + const primaryColor = getPrimaryColor(forces[0].catalog); return (
{ const Force = ({ force }) => { const { units, rules, catalog } = force; - const primaryColor = getPrimaryColor(catalog); return (
{units.map((unit, index) => (