diff --git a/src/components/RenderError.js b/src/components/RenderError.js index 0ed04df4..e20a7f9e 100644 --- a/src/components/RenderError.js +++ b/src/components/RenderError.js @@ -4,9 +4,9 @@ import React, { PureComponent } from 'react' import styled from 'styled-components' import { openURL } from 'helpers/linking' import { remote } from 'electron' -import qs from 'querystring' import { translate } from 'react-i18next' +import { urls } from 'config/urls' import { i } from 'helpers/staticPath' import hardReset from 'helpers/hardReset' @@ -47,21 +47,12 @@ class RenderError extends PureComponent< ) - handleCreateIssue = () => { - const { error } = this.props - if (!error) { - return - } - const q = qs.stringify({ - title: `Error: ${error.message}`, - body: `Error was thrown: - -\`\`\` -${error.stack} -\`\`\` -`, - }) - openURL(`https://github.com/LedgerHQ/ledger-live-desktop/issues/new?${q}`) + github = () => { + openURL(urls.githubIssues) + } + + contact = () => { + openURL(urls.contactSupport) } handleRestart = () => { @@ -105,8 +96,11 @@ ${error.stack} {t('app:crash.restart')} - +