Skip to content

Commit

Permalink
ui fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Jan 22, 2024
1 parent 7c521c4 commit d4915cb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions packages/frontend/src/components/boxes/DefencesBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ const DefencesBox = ({
const [quantity, setQuantity] = useState(1);
const [showTooltip, setShowTooltip] = useState(true);

console.log('functionCallName: ', functionCallName);

const { tx, writeAsync: build } = useDefenceBuild(
functionCallName,
quantity,
Expand Down
6 changes: 2 additions & 4 deletions packages/frontend/src/components/ui/HostileMissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,12 @@ interface HostileMissionsProps {
// Component
export const HostileMissions = ({ planetId }: HostileMissionsProps) => {
const hostileMissions = useGetHostileMissions(Number(planetId));
console.log('hostileMissions', hostileMissions);

const displayedMissions = hostileMissions?.filter(shouldDisplayMission) || [];
console.log('displayedMissions', displayedMissions);

return (
<>
{!hostileMissions ? null : (
{displayedMissions.length != 0 ? (
<Container>
<TitleContainer>
{displayedMissions.length > 0 && <StyledWarningIcon />}
Expand All @@ -161,7 +159,7 @@ export const HostileMissions = ({ planetId }: HostileMissionsProps) => {
<MissionRow mission={mission} key={mission.id_at_origin} />
))}
</Container>
)}
) : null}
</>
);
};
2 changes: 0 additions & 2 deletions packages/frontend/src/hooks/writeHooks/useBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ export function useDefenceBuild(
const name =
colonyId === 0 ? getBuildType(unitName) : getColonyBuildType(unitName);

console.log(name);

const calls = [
colonyId === 0
? contract?.populateTransaction['process_defence_build']!(
Expand Down

0 comments on commit d4915cb

Please sign in to comment.