diff options
author | Hsuan Lee <hsuan@cobinhood.com> | 2018-11-09 14:13:12 +0800 |
---|---|---|
committer | Hsuan Lee <hsuan@cobinhood.com> | 2018-12-10 18:46:49 +0800 |
commit | b271dfc4e5951af6b99fe9a0d2000bb6db45e214 (patch) | |
tree | e8c1684e034c4b53346dddccd79178bdbe660d62 /ui/app/components/token-input | |
parent | 667007ee63945a00fa0c46c3d037a30b1e434bce (diff) | |
download | dexon-wallet-b271dfc4e5951af6b99fe9a0d2000bb6db45e214.tar.gz dexon-wallet-b271dfc4e5951af6b99fe9a0d2000bb6db45e214.tar.zst dexon-wallet-b271dfc4e5951af6b99fe9a0d2000bb6db45e214.zip |
Fix UI bugs
Diffstat (limited to 'ui/app/components/token-input')
3 files changed, 11 insertions, 11 deletions
diff --git a/ui/app/components/token-input/tests/token-input.component.test.js b/ui/app/components/token-input/tests/token-input.component.test.js index 2dacb9bc..03ad5376 100644 --- a/ui/app/components/token-input/tests/token-input.component.test.js +++ b/ui/app/components/token-input/tests/token-input.component.test.js @@ -25,7 +25,7 @@ describe('TokenInput Component', () => { it('should render properly with a token', () => { const mockStore = { - metamask: { + dekusan: { currentCurrency: 'usd', conversionRate: 231.06, }, @@ -59,7 +59,7 @@ describe('TokenInput Component', () => { it('should render properly with a token and selectedTokenExchangeRate', () => { const mockStore = { - metamask: { + dekusan: { currentCurrency: 'usd', conversionRate: 231.06, }, @@ -93,7 +93,7 @@ describe('TokenInput Component', () => { it('should render properly with a token value for ETH', () => { const mockStore = { - metamask: { + dekusan: { currentCurrency: 'usd', conversionRate: 231.06, }, @@ -127,7 +127,7 @@ describe('TokenInput Component', () => { it('should render properly with a token value for fiat', () => { const mockStore = { - metamask: { + dekusan: { currentCurrency: 'usd', conversionRate: 231.06, }, @@ -172,7 +172,7 @@ describe('TokenInput Component', () => { it('should call onChange and onBlur on input changes with the hex value for ETH', () => { const mockStore = { - metamask: { + dekusan: { currentCurrency: 'usd', conversionRate: 231.06, }, @@ -220,7 +220,7 @@ describe('TokenInput Component', () => { it('should call onChange and onBlur on input changes with the hex value for fiat', () => { const mockStore = { - metamask: { + dekusan: { currentCurrency: 'usd', conversionRate: 231.06, }, @@ -269,7 +269,7 @@ describe('TokenInput Component', () => { it('should change the state and pass in a new decimalValue when props.value changes', () => { const mockStore = { - metamask: { + dekusan: { currentCurrency: 'usd', conversionRate: 231.06, }, diff --git a/ui/app/components/token-input/tests/token-input.container.test.js b/ui/app/components/token-input/tests/token-input.container.test.js index d73bc9a9..6621556e 100644 --- a/ui/app/components/token-input/tests/token-input.container.test.js +++ b/ui/app/components/token-input/tests/token-input.container.test.js @@ -17,7 +17,7 @@ describe('TokenInput container', () => { describe('mapStateToProps()', () => { it('should return the correct props when send is empty', () => { const mockState = { - metamask: { + dekusan: { currentCurrency: 'usd', tokens: [ { @@ -45,7 +45,7 @@ describe('TokenInput container', () => { it('should return the correct props when selectedTokenAddress is not found and send is populated', () => { const mockState = { - metamask: { + dekusan: { currentCurrency: 'usd', tokens: [ { @@ -73,7 +73,7 @@ describe('TokenInput container', () => { it('should return the correct props when contractExchangeRates is populated', () => { const mockState = { - metamask: { + dekusan: { currentCurrency: 'usd', tokens: [ { diff --git a/ui/app/components/token-input/token-input.container.js b/ui/app/components/token-input/token-input.container.js index ec233b1b..91ba1c5f 100644 --- a/ui/app/components/token-input/token-input.container.js +++ b/ui/app/components/token-input/token-input.container.js @@ -3,7 +3,7 @@ import TokenInput from './token-input.component' import { getSelectedToken, getSelectedTokenExchangeRate } from '../../selectors' const mapStateToProps = state => { - const { metamask: { currentCurrency } } = state + const { dekusan: { currentCurrency } } = state return { currentCurrency, |