From eb48fe5b065f70730f920b88086849a0ed931ac4 Mon Sep 17 00:00:00 2001 From: Davide Silva Date: Wed, 24 Apr 2024 11:00:00 +0100 Subject: [PATCH] hotfix: replace sale details with tbd in the API --- packages/web-app/app/_server/sales.ts | 2 +- packages/web-app/app/api/sale/route.ts | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/web-app/app/_server/sales.ts b/packages/web-app/app/_server/sales.ts index 3709befa..02ff3f1a 100644 --- a/packages/web-app/app/_server/sales.ts +++ b/packages/web-app/app/_server/sales.ts @@ -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], diff --git a/packages/web-app/app/api/sale/route.ts b/packages/web-app/app/api/sale/route.ts index 959a4c8a..f9dedbd7 100644 --- a/packages/web-app/app/api/sale/route.ts +++ b/packages/web-app/app/api/sale/route.ts @@ -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); }