From 44021a3cb35ffdf980deb64e42f106158c4817ff Mon Sep 17 00:00:00 2001 From: Antoni Spaanderman <56turtle56@gmail.com> Date: Mon, 24 Jan 2022 20:25:22 +0100 Subject: [PATCH] prefer `const` over `let` --- frontend/src/app/components/block/block.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/block/block.component.ts b/frontend/src/app/components/block/block.component.ts index 9482d9953..f1bfc63a5 100644 --- a/frontend/src/app/components/block/block.component.ts +++ b/frontend/src/app/components/block/block.component.ts @@ -216,7 +216,7 @@ export class BlockComponent implements OnInit, OnDestroy { this.blockSubsidy = 0; return; } - let halvings = Math.floor(this.block.height / (this.network === 'regtest' ? 150 : 210000)); + const halvings = Math.floor(this.block.height / (this.network === 'regtest' ? 150 : 210000)); this.blockSubsidy = 50 * 2 ** -halvings; }