diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-03-01 09:40:03 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-03-01 09:40:03 +0100 |
| commit | a7a6a681421bc88c7789f74340a4eec0874c36b5 (patch) | |
| tree | c6535a60a3bc969cff7ff985a2258905a020ad63 /app/components/Support.js | |
| parent | 13651b5bd3b4ea6f864803846c8b544ebc47dec5 (diff) | |
| parent | 2a2dd810f8941d072aa7b7fd30dc26dd510141e6 (diff) | |
| download | mullvadvpn-2018.1.tar.xz mullvadvpn-2018.1.zip | |
Merge branch 'fix-problem-report' into prepare-2018.12018.1
Diffstat (limited to 'app/components/Support.js')
| -rw-r--r-- | app/components/Support.js | 10 |
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))); }); |
