From 12755bace0785b860db5bd584c701aa5d65f475c Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Fri, 21 Sep 2018 10:46:50 +0200 Subject: [PATCH] flowconfig fix for FlowWebpackPlugin --- .flowconfig | 2 +- src/utils/formatUtils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.flowconfig b/.flowconfig index 6897a28b..9a632b96 100644 --- a/.flowconfig +++ b/.flowconfig @@ -9,7 +9,7 @@ .*/node_modules/react-router-redux/.* .*/node_modules/oboe/test/.* .*/_old/.* -.*/public/.* +.*/public/solidity/.* [libs] ./src/flowtype/npm/redux_v3.x.x.js diff --git a/src/utils/formatUtils.js b/src/utils/formatUtils.js index 986b0ee9..9009cc7e 100644 --- a/src/utils/formatUtils.js +++ b/src/utils/formatUtils.js @@ -3,7 +3,7 @@ // TODO: chagne currency units 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); if (coinInfo.isBitcoin && currencyUnits === 'mbtc' && amount <= 0.1 && n !== 0) { const s = (n / 1e5).toString();