From bce3fd5f1ceefc132f5937ff6a0ed7e76ff4a685 Mon Sep 17 00:00:00 2001 From: Makoto Inoue <2630+makoto@users.noreply.github.com> Date: Wed, 1 May 2019 16:15:14 +0100 Subject: [PATCH] Check registrationDate against legacyEntry (#236) --- src/api/registrar.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/api/registrar.js b/src/api/registrar.js index c78d32bec..a8946bca6 100644 --- a/src/api/registrar.js +++ b/src/api/registrar.js @@ -201,10 +201,9 @@ export const getEntry = async name => { try { let permEntry = await getPermanentEntry(name) - - if (ret.registrationDate && permEntry.migrationLockPeriod) { + if (legacyEntry.registrationDate && permEntry.migrationLockPeriod) { ret.migrationStartDate = new Date( - ret.registrationDate + permEntry.migrationLockPeriod * 1000 + legacyEntry.registrationDate + permEntry.migrationLockPeriod * 1000 ) } else { ret.migrationStartDate = null