SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ad6744db5c62d3643ae73313dea6d7132dafa8e6
parent 6402dd0df8e33df20eedce991978f6d95c68921b
Author: nickfarrow <nick@nickfarrow.com>
Date:   Tue, 18 May 2021 01:09:45 +1000

fix rounding bug

Diffstat:
Mstatic/server_connection.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/static/server_connection.js b/static/server_connection.js @@ -20,7 +20,7 @@ function initiate(payment_data) { $('#address').text(msg.address).html(); // Display payment amount $('#amount').text(msg.amount).html(); - $('#amount_sats').text(round(msg.amount * 10**8)).html(); + $('#amount_sats').text(math.round(msg.amount * 10**8)).html(); // Display payment time left $('#timer').text(Math.round(msg.time_left)).html();