Skip to content

Commit

Permalink
fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau committed May 29, 2024
1 parent 6f58283 commit e9cbb12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/messages/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ export const Error: React.FC<Props> = ({ title, error, isLokiRelated }) => {
}, [error]);

React.useEffect(() => {
if (isLokiRelated) {
//jest crashing on getLokiReady not defined so we need to ensure the function is defined here
if (getLokiReady && isLokiRelated) {
getLokiReady()
.then(() => {
setReady(true);
Expand Down

0 comments on commit e9cbb12

Please sign in to comment.