Skip to content

Commit

Permalink
Merge pull request #2089 from holium/fix-updated-planet-data-structure
Browse files Browse the repository at this point in the history
Remove planet_status filter
  • Loading branch information
gdbroman authored Oct 23, 2023
2 parents db0131b + e9f5499 commit adbca69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions hosting-holium-com/src/pages/choose-id.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export const getServerSideProps: GetServerSideProps = async ({ query }) => {
const productId = products[0].id;

const planets = await thirdEarthApi.getPlanets(productId);
const identities = Object.values(planets.planets)
.filter((planet) => planet.planet_status === 'available')
.map((planet) => planet.patp);
const identities = Object.values(planets.planets).map(
(planet) => planet.patp
);

return {
props: {
Expand Down
1 change: 0 additions & 1 deletion shared/src/onboarding/services/ThirdEarthApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ type GetPlanetsResponse = {
[key: number]: {
id: number;
patp: string;
planet_status: 'available' | 'sold';
sigil: string;
};
};
Expand Down

1 comment on commit adbca69

@vercel
Copy link

@vercel vercel bot commented on adbca69 Oct 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

hosting-holium-com – ./hosting-holium-com

realm-onboarding.vercel.app
hosting.holium.com
hosting-holium-com-git-master-holium.vercel.app
hosting-holium-com-holium.vercel.app

Please sign in to comment.