Skip to content

Commit

Permalink
FIXED the loading state of button at AddUser
Browse files Browse the repository at this point in the history
  • Loading branch information
adriandotdev committed Jul 16, 2023
1 parent bf52411 commit 5a555f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AddUser.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function AddUser() {

const submit = async () => {

setLoading(false);
setLoading(true);

try {
const response = await axios.post(`${import.meta.env.PROD ? import.meta.env.VITE_PROD_SERVER : import.meta.env.VITE_DEV_SERVER}/users/add`, getValues())
Expand Down

0 comments on commit 5a555f5

Please sign in to comment.