Skip to content

Commit

Permalink
#1403 fixed timer when services are not available
Browse files Browse the repository at this point in the history
  • Loading branch information
matej-vavrek committed Apr 18, 2024
1 parent 2a657e7 commit 6395110
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/components/services/ServicesStatusWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export const ServicesStatusWrapper = memo(() => {
if (!(prevState.length === 1 && prevState[0]?.id === 'services')) {
toastError('Status of services is not available');
}
return [{ id: 'services', name: 'Status of services', state: 'NOT_AVAILABLE', timestamp: Date.now() }];
const newTemp = [{ id: 'services', name: 'Status of services', state: 'NOT_AVAILABLE', timestamp: Date.now() }];
checkServices(prevState, newTemp);
return newTemp;
});
} else {
setServices((prevState) => {
Expand Down

0 comments on commit 6395110

Please sign in to comment.