Skip to content

Commit

Permalink
fix-CI-step--upload-coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-mng committed Sep 6, 2024
1 parent e12c5c7 commit 01d912d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/web/store/usersettings/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,14 @@ export const setIsLoggedIn = isLoggedIn => ({
isLoggedIn: isLoggedIn === true,
});

export const renewSessionTimeout = gmp => () => dispatch =>
gmp.user
.renewSession()
.then(response => dispatch(setSessionTimeout(response.data)));

export const renewSessionTimeout = gmp => () => async dispatch => {
try {
const response = await gmp.user.renewSession();
dispatch(setSessionTimeout(response.data));
} catch (error) {
console.error('Error renewing session:', error);
}

Check warning on line 61 in src/web/store/usersettings/actions.js

View check run for this annotation

Codecov / codecov/patch

src/web/store/usersettings/actions.js#L60-L61

Added lines #L60 - L61 were not covered by tests
};
export const updateTimezone = gmp => timezone => dispatch => {
gmp.setTimezone(timezone);
return Promise.resolve(dispatch(setTimezone(timezone)));
Expand Down

0 comments on commit 01d912d

Please sign in to comment.