Skip to content

Commit 2844a84

Browse files
committed
Uncaught BigNumber Error: new BigNumber() number type has more than 15 significant digits: 8999999999999999
1 parent 1e4ba31 commit 2844a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/v2/js/pages/kudos_send.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ function sendKudos(email, github_url, from_name, username, amountInEth, comments
504504
console.log('destinationAccount:' + destinationAccount);
505505

506506
var kudosPriceInEth = parseFloat($('#kudosPrice').attr('data-ethprice')) || $('.kudos-search').select2('data')[0].price_finney;
507-
var kudosPriceInWei = new web3.BigNumber(kudosPriceInEth * 1.0 * Math.pow(10, 18));
507+
var kudosPriceInWei = new web3.BigNumber((kudosPriceInEth * 1.0 * Math.pow(10, 18)).toString());
508508

509509
if (is_direct_to_recipient) {
510510
// Step 9

0 commit comments

Comments
 (0)