Skip to content

Commit

Permalink
Reload when added a user
Browse files Browse the repository at this point in the history
  • Loading branch information
rlho committed Nov 6, 2023
1 parent 95307b8 commit 729a876
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const AdminUsers = () => {
]);

alert('User has been registered successfully!');
window.location.reload();
fetchAdminUsers();
};
return (
<div className="m-10">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const Ban = () => {
serverFunctions.appendRow(BAN_SHEET_NAME, [email, new Date().toString()]);

alert('User has been registered successfully!');
window.location.reload();
fetchBans();
};
return (
<div className="m-10">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const Liaisons = () => {
]);

alert('User has been registered successfully!');
window.location.reload();
fetchLiaisonUsers();
};
return (
<div className="m-10">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const SafetyTraining = () => {
]);

alert('User has been registered successfully!');
window.location.reload();
fetchSafetyTrainings();
};
return (
<div className="m-10">
Expand Down

0 comments on commit 729a876

Please sign in to comment.