From 15b077121693569a231dee1b6b666e9ce190d2a1 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 27 Feb 2023 08:32:04 -0600 Subject: [PATCH] decimal places display consistency bugfix --- .../paynym/dialogs/confirm_paynym_connect_dialog.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/pages/paynym/dialogs/confirm_paynym_connect_dialog.dart b/lib/pages/paynym/dialogs/confirm_paynym_connect_dialog.dart index 9dc653118..780db2f81 100644 --- a/lib/pages/paynym/dialogs/confirm_paynym_connect_dialog.dart +++ b/lib/pages/paynym/dialogs/confirm_paynym_connect_dialog.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_svg/svg.dart'; import 'package:stackwallet/utilities/assets.dart'; +import 'package:stackwallet/utilities/constants.dart'; import 'package:stackwallet/utilities/enums/coin_enum.dart'; import 'package:stackwallet/utilities/format.dart'; import 'package:stackwallet/utilities/text_styles.dart'; @@ -29,7 +30,12 @@ class ConfirmPaynymConnectDialog extends StatelessWidget { String get title => "Connect to $nymName"; String get message => "A one-time connection fee of " - "${Format.satoshisToAmount(amount, coin: coin)} ${coin.ticker} " + "${Format.satoshisToAmount( + amount, + coin: coin, + ).toStringAsFixed( + Constants.decimalPlacesForCoin(coin), + )} ${coin.ticker} " "will be charged to connect to this PayNym.\n\nThis fee " "covers the cost of creating a one-time transaction to create a " "record on the blockchain. This keeps PayNyms decentralized.";