Use an opts arg for submit-rageshake

This commit is contained in:
Richard van der Hoff 2017-04-12 11:26:53 +01:00
parent 6423f7ce03
commit 3f291aae5b
2 changed files with 12 additions and 8 deletions

View file

@ -48,9 +48,10 @@ export default class BugReportDialog extends React.Component {
return;
}
this.setState({ busy: true, err: null });
submit_rageshake(
SdkConfig.get().bug_report_endpoint_url, userText, sendLogs,
).then(() => {
submit_rageshake(SdkConfig.get().bug_report_endpoint_url, {
userText: userText,
sendLogs: sendLogs,
}).then(() => {
this.setState({ busy: false });
this.props.onFinished(false);
}, (err) => {