From c6162cd036a65f72d3176b8041910b3c36cb14e0 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Tue, 29 Oct 2024 14:11:58 +0530 Subject: [PATCH] Check records with names not null --- packages/backend/src/registry.ts | 4 +--- .../frontend/src/components/projects/create/Configure.tsx | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/registry.ts b/packages/backend/src/registry.ts index 9b5d913b..03ef08aa 100644 --- a/packages/backend/src/registry.ts +++ b/packages/backend/src/registry.ts @@ -324,9 +324,7 @@ export class Registry { paymentAddress: auctionWinner, }); - const newRecords = records.filter(record => { - record.names !== null - }) + const newRecords = records.filter(record => record.names !== null); for (const record of newRecords) { if (record.id) { diff --git a/packages/frontend/src/components/projects/create/Configure.tsx b/packages/frontend/src/components/projects/create/Configure.tsx index e56e7d1d..f4cd0092 100644 --- a/packages/frontend/src/components/projects/create/Configure.tsx +++ b/packages/frontend/src/components/projects/create/Configure.tsx @@ -221,7 +221,7 @@ const Configure = () => { const isTxHashValid = await verifyTx( senderAddress, txHash, - amount.toString(), + amountToBePaid.toString(), ); if (isTxHashValid === false) {