Skip to content

Commit

Permalink
Check registrationDate against legacyEntry (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto authored May 1, 2019
1 parent c47fe2d commit bce3fd5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/api/registrar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bce3fd5

Please sign in to comment.