From 3152effba51a0c3a27a8bc7af60e28e4fec05a05 Mon Sep 17 00:00:00 2001 From: softsimon Date: Fri, 1 Jul 2022 15:24:14 +0200 Subject: [PATCH] Sats component rounding --- .../lightning/channel/channel-box/channel-box.component.html | 2 +- frontend/src/app/shared/components/sats/sats.component.html | 2 +- frontend/src/app/shared/components/sats/sats.component.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/lightning/channel/channel-box/channel-box.component.html b/frontend/src/app/lightning/channel/channel-box/channel-box.component.html index 51daf4f05..382fffd47 100644 --- a/frontend/src/app/lightning/channel/channel-box/channel-box.component.html +++ b/frontend/src/app/lightning/channel/channel-box/channel-box.component.html @@ -25,7 +25,7 @@ Base fee - + diff --git a/frontend/src/app/shared/components/sats/sats.component.html b/frontend/src/app/shared/components/sats/sats.component.html index d8b52b956..a648cdfcb 100644 --- a/frontend/src/app/shared/components/sats/sats.component.html +++ b/frontend/src/app/shared/components/sats/sats.component.html @@ -1,4 +1,4 @@ -‎{{ addPlus && satoshis >= 0 ? '+' : '' }}{{ satoshis | number : '1.0-0' }} +‎{{ addPlus && satoshis >= 0 ? '+' : '' }}{{ satoshis | number : digitsInfo }} L- tL- t- diff --git a/frontend/src/app/shared/components/sats/sats.component.ts b/frontend/src/app/shared/components/sats/sats.component.ts index f341b3027..d9801d249 100644 --- a/frontend/src/app/shared/components/sats/sats.component.ts +++ b/frontend/src/app/shared/components/sats/sats.component.ts @@ -9,7 +9,7 @@ import { StateService } from '../../../services/state.service'; }) export class SatsComponent implements OnInit { @Input() satoshis: number; - @Input() digitsInfo = 0; + @Input() digitsInfo = '1.0-0'; @Input() addPlus = false; network = '';