Fix using tracking data from API in NPS poll

[MAILPOET-1815]
This commit is contained in:
Rostislav Wolny
2019-03-12 12:59:15 +01:00
committed by M. Shull
parent 442b138d83
commit 514db707d0

View File

@@ -42,7 +42,7 @@ class NpsPoll extends React.Component {
displayPoll() {
if (!this.state.pollShown) {
this.setState({ pollShown: true });
getTrackingData().then(this.callSatismeter);
getTrackingData().then(data => this.callSatismeter(data.data));
}
}