Browse Source

Fix error imprecision

master
Gaëtan Renaudeau 7 years ago
parent
commit
6bf4e175f5
  1. 8
      src/components/modals/AddAccounts/steps/03-step-import.js
  2. 1
      static/i18n/en/app.yml

8
src/components/modals/AddAccounts/steps/03-step-import.js

@ -160,7 +160,7 @@ class StepImport extends PureComponent<StepProps> {
} }
renderError() { renderError() {
const { err, t } = this.props const { err } = this.props
invariant(err, 'Trying to render inexisting error') invariant(err, 'Trying to render inexisting error')
return ( return (
<Box <Box
@ -172,9 +172,11 @@ class StepImport extends PureComponent<StepProps> {
color="alertRed" color="alertRed"
> >
<IconExclamationCircleThin size={43} /> <IconExclamationCircleThin size={43} />
<Box mt={4}>{t('app:addAccounts.somethingWentWrong')}</Box>
<Box mt={4}> <Box mt={4}>
<TranslatedError error={err} /> <TranslatedError error={err} field="title" />
</Box>
<Box mt={4}>
<TranslatedError error={err} field="description" />
</Box> </Box>
</Box> </Box>
) )

1
static/i18n/en/app.yml

@ -183,7 +183,6 @@ addAccounts:
title: Add a new account title: Add a new account
noOperationOnLastAccount: "No transactions found on your last new account <1><0>{{accountName}}</0></1>. You can add a new account after you've started transacting on that account." noOperationOnLastAccount: "No transactions found on your last new account <1><0>{{accountName}}</0></1>. You can add a new account after you've started transacting on that account."
noAccountToCreate: No <1><0>{{currencyName}}</0></1> account was found to create noAccountToCreate: No <1><0>{{currencyName}}</0></1> account was found to create
somethingWentWrong: Something went wrong during synchronization, please try again.
cta: cta:
addMore: 'Add more' addMore: 'Add more'
add: 'Add account' add: 'Add account'

Loading…
Cancel
Save