summaryrefslogtreecommitdiffhomepage
path: root/app/components/Support.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/components/Support.js')
-rw-r--r--app/components/Support.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/app/components/Support.js b/app/components/Support.js
index dc646bdb0e..d1586430e0 100644
--- a/app/components/Support.js
+++ b/app/components/Support.js
@@ -56,16 +56,12 @@ export default class Support extends Component {
});
}
- _getLog() {
- const toRedact = [];
- if (this.props.account.accountToken) {
- toRedact.push(this.props.account.accountToken.toString());
- }
-
+ _getLog(): Promise<string> {
+ const accountsToRedact = this.props.account.accountHistory;
const { savedReport } = this.state;
return savedReport ?
Promise.resolve(savedReport) :
- this.props.onCollectLog(toRedact)
+ this.props.onCollectLog(accountsToRedact)
.then( path => {
return new Promise(resolve => this.setState({ savedReport: path }, () => resolve(path)));
});