summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-02-27 14:30:57 +0100
committerAndrej Mihajlov <and@mullvad.net>2018-02-27 16:19:23 +0100
commitc698ef90c1fbc30965c9fa9656254a8c97b7dbb9 (patch)
tree5c9adb219de8aa6b0b65ce1052eadea6166f1831
parentce7f78de68c7dd1aaf9e4aeed969e2e58b91621e (diff)
downloadmullvadvpn-c698ef90c1fbc30965c9fa9656254a8c97b7dbb9.tar.xz
mullvadvpn-c698ef90c1fbc30965c9fa9656254a8c97b7dbb9.zip
Use the entire account history to redact logs
-rw-r--r--app/components/Support.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/components/Support.js b/app/components/Support.js
index 1d15229f99..9b37f85f4e 100644
--- a/app/components/Support.js
+++ b/app/components/Support.js
@@ -58,15 +58,11 @@ export default class Support extends Component<SupportProps, SupportState> {
}
_getLog(): Promise<string> {
- const toRedact = [];
- if (this.props.account.accountToken) {
- toRedact.push(this.props.account.accountToken.toString());
- }
-
+ 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)));
});