mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-28 03:08:30 +00:00
flowconfig fix for FlowWebpackPlugin
This commit is contained in:
parent
3881aaf6cf
commit
12755bace0
@ -9,7 +9,7 @@
|
|||||||
.*/node_modules/react-router-redux/.*
|
.*/node_modules/react-router-redux/.*
|
||||||
.*/node_modules/oboe/test/.*
|
.*/node_modules/oboe/test/.*
|
||||||
.*/_old/.*
|
.*/_old/.*
|
||||||
.*/public/.*
|
.*/public/solidity/.*
|
||||||
|
|
||||||
[libs]
|
[libs]
|
||||||
./src/flowtype/npm/redux_v3.x.x.js
|
./src/flowtype/npm/redux_v3.x.x.js
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
// TODO: chagne currency units
|
// TODO: chagne currency units
|
||||||
const currencyUnitsConstant: string = 'mbtc2';
|
const currencyUnitsConstant: string = 'mbtc2';
|
||||||
|
|
||||||
export const formatAmount = (n: number, coinInfo: any, currencyUnits = currencyUnitsConstant): string => {
|
export const formatAmount = (n: number, coinInfo: any, currencyUnits: string = currencyUnitsConstant): string => {
|
||||||
const amount = (n / 1e8);
|
const amount = (n / 1e8);
|
||||||
if (coinInfo.isBitcoin && currencyUnits === 'mbtc' && amount <= 0.1 && n !== 0) {
|
if (coinInfo.isBitcoin && currencyUnits === 'mbtc' && amount <= 0.1 && n !== 0) {
|
||||||
const s = (n / 1e5).toString();
|
const s = (n / 1e5).toString();
|
||||||
|
Loading…
Reference in New Issue
Block a user