From 3f990ff7061ed8556dd9779f065053513fc15713 Mon Sep 17 00:00:00 2001 From: softsimon Date: Wed, 2 Dec 2020 17:03:04 +0700 Subject: [PATCH] Corrected some missing spaces on transactions page and a blank render bug when confirmation time is below 1 minute. --- frontend/src/app/components/timespan/timespan.component.ts | 3 ++- .../app/components/transaction/transaction.component.html | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/components/timespan/timespan.component.ts b/frontend/src/app/components/timespan/timespan.component.ts index 6433aa250..4edba3df0 100644 --- a/frontend/src/app/components/timespan/timespan.component.ts +++ b/frontend/src/app/components/timespan/timespan.component.ts @@ -14,7 +14,8 @@ export class TimespanComponent implements OnChanges { ngOnChanges() { const seconds = this.time; if (seconds < 60) { - return '< 1 minute'; + this.text = '< 1 minute'; + return; } const intervals = { year: 31536000, diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html index 9e40dbe5d..dfd27e13d 100644 --- a/frontend/src/app/components/transaction/transaction.component.html +++ b/frontend/src/app/components/transaction/transaction.component.html @@ -56,7 +56,7 @@ Confirmed - After + After  @@ -123,11 +123,10 @@ - < {{ 1 * txInBlockIndex + 1 }} minutes ({{ txInBlockIndex + 1 }} block{{ txInBlockIndex > 0 ? 's' : '' }}) + < {{ 1 * txInBlockIndex + 1 }} minutes ({{ txInBlockIndex + 1 }} block{{ txInBlockIndex > 0 ? 's' : '' }}) - - ~{{ 10 * txInBlockIndex + 10 }} minutes ({{ txInBlockIndex + 1 }} block{{ txInBlockIndex > 0 ? 's' : '' }}) + ~{{ 10 * txInBlockIndex + 10 }} minutes ({{ txInBlockIndex + 1 }} block{{ txInBlockIndex > 0 ? 's' : '' }})