Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 0137641

Browse files
committed
Add parseFloat to fix floating-point multiplication bug
1 parent a6fc5b6 commit 0137641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/lightning-core/accounts/reducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const actions = {
8484
[GRPC]: {
8585
method: 'walletBalance',
8686
schema: wallet => ({
87-
wallet: wallet.balance * 100000000, // To SAT,
87+
wallet: parseFloat(wallet.balance * 100000000), // To SAT,
8888
}),
8989
},
9090
}),

0 commit comments

Comments
 (0)