From 906a457ae5a8683f82d218759fd66dc1b7c9a220 Mon Sep 17 00:00:00 2001 From: Vojtech Simetka Date: Sun, 24 Apr 2022 21:40:31 +0500 Subject: [PATCH] fix: show current postage stamp price per block (#348) --- src/pages/stamps/PostageStampCreation.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/stamps/PostageStampCreation.tsx b/src/pages/stamps/PostageStampCreation.tsx index 0c7217ba..3e8dc296 100644 --- a/src/pages/stamps/PostageStampCreation.tsx +++ b/src/pages/stamps/PostageStampCreation.tsx @@ -52,7 +52,9 @@ export function PostageStampCreation({ onFinished }: Props): ReactElement { const pricePerBlock = Number.parseInt(chainState.currentPrice, 10) - return `${secondsToTimeString(convertAmountToSeconds(amount, pricePerBlock))} (with price of 0 per block)` + return `${secondsToTimeString( + convertAmountToSeconds(amount, pricePerBlock), + )} (with price of ${pricePerBlock.toFixed(0)} per block)` } function getPrice(depth: number, amount: bigint): string {