Browse Source
Upgraded error, moved from custom error to specific imported one
develop
Juan Cortes Ross
6 years ago
No known key found for this signature in database
GPG Key ID: 34A99C03E9455EB8
4 changed files with
10 additions and
10 deletions
-
package.json
-
src/components/FeesField/BitcoinKind.js
-
static/i18n/en/app.json
-
yarn.lock
|
|
@ -35,7 +35,7 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
"dependencies": { |
|
|
|
"@ledgerhq/errors": "^4.35.1", |
|
|
|
"@ledgerhq/errors": "^4.39.0", |
|
|
|
"@ledgerhq/hw-app-btc": "^4.35.0", |
|
|
|
"@ledgerhq/hw-app-eth": "^4.35.0", |
|
|
|
"@ledgerhq/hw-app-xrp": "^4.35.0", |
|
|
|
|
|
@ -8,7 +8,7 @@ import { translate } from 'react-i18next' |
|
|
|
|
|
|
|
import type { T } from 'types/common' |
|
|
|
|
|
|
|
import { FeeNotLoaded } from '@ledgerhq/errors' |
|
|
|
import { FeeNotLoaded, FeeRequired } from '@ledgerhq/errors' |
|
|
|
import InputCurrency from 'components/base/InputCurrency' |
|
|
|
import Select from 'components/base/Select' |
|
|
|
import type { Fees } from '@ledgerhq/live-common/lib/api/Fees' |
|
|
@ -151,7 +151,7 @@ class FeesField extends Component<OwnProps, State> { |
|
|
|
!feePerByte && error |
|
|
|
? new FeeNotLoaded() |
|
|
|
: feePerByte && feePerByte.isZero() |
|
|
|
? new Error(t('errors.FeesAreRequired.title')) |
|
|
|
? new FeeRequired() |
|
|
|
: null |
|
|
|
} |
|
|
|
renderRight={ |
|
|
|
|
|
@ -738,9 +738,6 @@ |
|
|
|
"title": "{{message}}", |
|
|
|
"description": "Something went wrong. Please retry or contact us." |
|
|
|
}, |
|
|
|
"FeesAreRequired": { |
|
|
|
"title": "Fees are required" |
|
|
|
}, |
|
|
|
"AccountNameRequired": { |
|
|
|
"title": "An account name is required", |
|
|
|
"description": "Please provide an account name" |
|
|
@ -928,6 +925,9 @@ |
|
|
|
"FeeNotLoaded": { |
|
|
|
"title": "Couldn’t load fee rates, please set manual fees" |
|
|
|
}, |
|
|
|
"FeeRequired": { |
|
|
|
"title": "Fees are required" |
|
|
|
}, |
|
|
|
"UnknownMCU": { |
|
|
|
"title": "Unknown MCU version", |
|
|
|
"description": "Please contact Ledger Support" |
|
|
|
|
|
@ -1677,10 +1677,10 @@ |
|
|
|
camelcase "^5.0.0" |
|
|
|
prettier "^1.13.7" |
|
|
|
|
|
|
|
"@ledgerhq/errors@^4.32.0", "@ledgerhq/errors@^4.35.1": |
|
|
|
version "4.35.1" |
|
|
|
resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-4.35.1.tgz#3f162dc05480e444083b6381bd098df187751633" |
|
|
|
integrity sha512-2Bo3/NRKyz3ddR07TvZ87VpDJc8fz4+ONLJnhzC0mwIwu+Pxal6SgCBiGtv503oGxkgDuG5PtODZBaehWkGRnQ== |
|
|
|
"@ledgerhq/errors@^4.32.0", "@ledgerhq/errors@^4.39.0": |
|
|
|
version "4.39.0" |
|
|
|
resolved "https://registry.yarnpkg.com/@ledgerhq/errors/-/errors-4.39.0.tgz#10b9889f78df94ce36a4b34d9a3a45aac77be0e9" |
|
|
|
integrity sha512-kBr2rnoYDACRCxTLtEufE4oCvYj6vx2oFWVVjwskBxYsF5LC9R8Mbg5C4GgvDweiWW4Io8HA9p9jCsOfdCDygg== |
|
|
|
|
|
|
|
"@ledgerhq/hw-app-btc@^4.32.0", "@ledgerhq/hw-app-btc@^4.35.0": |
|
|
|
version "4.35.0" |
|
|
|