Check records with names not null
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m28s
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m28s
This commit is contained in:
parent
781b667319
commit
c6162cd036
@ -324,9 +324,7 @@ export class Registry {
|
|||||||
paymentAddress: auctionWinner,
|
paymentAddress: auctionWinner,
|
||||||
});
|
});
|
||||||
|
|
||||||
const newRecords = records.filter(record => {
|
const newRecords = records.filter(record => record.names !== null);
|
||||||
record.names !== null
|
|
||||||
})
|
|
||||||
|
|
||||||
for (const record of newRecords) {
|
for (const record of newRecords) {
|
||||||
if (record.id) {
|
if (record.id) {
|
||||||
|
@ -221,7 +221,7 @@ const Configure = () => {
|
|||||||
const isTxHashValid = await verifyTx(
|
const isTxHashValid = await verifyTx(
|
||||||
senderAddress,
|
senderAddress,
|
||||||
txHash,
|
txHash,
|
||||||
amount.toString(),
|
amountToBePaid.toString(),
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isTxHashValid === false) {
|
if (isTxHashValid === false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user