Skip to content

Commit

Permalink
Fix/use of use fetching error notice (Automattic#36196)
Browse files Browse the repository at this point in the history
* Fix use of fetching error notice

* changelog
  • Loading branch information
CodeyGuyDylan authored Mar 5, 2024
1 parent 722a2e7 commit c7199d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ const useJetpackApiQuery = < T >(
} );

const { isError, isLoading } = queryResult;
useFetchingErrorNotice( name, ! isLoading && isError, errorMessage );
useFetchingErrorNotice( {
infoName: name,
isError: ! isLoading && isError,
overrideMessage: errorMessage,
} );

return queryResult;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Fixing the use of a hoook


0 comments on commit c7199d3

Please sign in to comment.