Skip to content

Commit

Permalink
ui fixes in universe tab
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Jan 21, 2024
1 parent 3a8f3e8 commit 120fd0e
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions packages/frontend/src/panels/UniverseViewTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,15 @@ const UniverseBoxItem = ({ ownPlanetId, planet, ownTechs }: UniverseProps) => {
const address = address_data || '';
const highlighted = parseInt(address, 16) === parseInt(planet.account, 16);

const isNoobProtected = useGetIsNoobProtected(
Number(ownPlanetId),
planet.planetId
);

const planetRanking = useGetPlanetRanking(planet.planetId);

const motherPlanet = useGetColonyMotherPlanet(planet.planetId);
const winLossArg = planet.planetId > 500 ? motherPlanet : planet.planetId;
const winLoss = useCalculateWinsAndLosses(winLossArg);
const lastActive = useLastActive(planet.planetId);
const planetArg = planet.planetId > 500 ? motherPlanet : planet.planetId;
console.log('planetArg', planetArg);

const planetRanking = useGetPlanetRanking(planetArg);
console.log('planetRanking', planetRanking);
const winLoss = useCalculateWinsAndLosses(planetArg);
const lastActive = useLastActive(planetArg);
const isNoobProtected = useGetIsNoobProtected(Number(ownPlanetId), planetArg);

const ownFleetData = useShipsLevels(Number(ownPlanetId));
const ownFleet: ShipsLevels = ownFleetData || {
Expand Down

0 comments on commit 120fd0e

Please sign in to comment.