Skip to content

Commit

Permalink
#1400 | Stopped retrying attemptSetup every 2seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
ombhardwajj committed Jan 31, 2025
1 parent 57002e4 commit 07980de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/reports/SelfServiceReports.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ const SelfServiceReports = () => {
throw new Error("Failed to setup reports.");
}
} catch (error) {
setTimeout(attemptSetup, 2000);
setState(prevState => ({
...prevState,
setupLoading: false,
errorMessage: error.message
}));
}
};
attemptSetup();
Expand Down

0 comments on commit 07980de

Please sign in to comment.