Skip to content

Commit

Permalink
hotfix: replace sale details with tbd in the API
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSilva committed Apr 24, 2024
1 parent 6fe00c3 commit eb48fe5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/web-app/app/_server/sales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const saleDetails = async (): Promise<
{
address: projectsInfo.citizend.address,
publicKey: projectsInfo.citizend.publicKey,
project: 'Citizend',
project: 'citizend',
status: contractResults[0],
rate: contractResults[1],
minTarget: contractResults[2],
Expand Down
15 changes: 14 additions & 1 deletion packages/web-app/app/api/sale/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,18 @@ export async function GET(_request: Request) {
});
}

return Response.json(details);
const tempDetails = details.map((project) => {
return {
...project,
status: 'Coming soon',
start: 'TBD',
end: 'TBD',
startRegistration: 'TBD',
endRegistration: 'TBD',
minTarget: 'TBD',
maxTarget: 'TBD',
};
});

return Response.json(tempDetails);
}

0 comments on commit eb48fe5

Please sign in to comment.