Skip to content

Commit

Permalink
psi widget: render actual error message
Browse files Browse the repository at this point in the history
The displayed message was specific to an API key which was no longer relevent but also not very useful.
  • Loading branch information
aaemnnosttv committed Oct 22, 2019
1 parent 7817474 commit ca9cd3d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ class PageSpeedInsightsDashboardWidgetHomepageSpeed extends Component {
} );
}

handleDataError() {
handleDataError( error ) {
this.setState( {
error: true,
error,
} );
}

Expand All @@ -77,7 +77,7 @@ class PageSpeedInsightsDashboardWidgetHomepageSpeed extends Component {
{
getDataErrorComponent(
__( 'PageSpeed Insights', 'google-site-kit' ),
__( 'Issue accessing data, please ensure the API key is set correctly.', 'google-site-kit' ),
error,
true,
true,
false
Expand Down

0 comments on commit ca9cd3d

Please sign in to comment.