Fix to comments

This commit is contained in:
Peter KW 2024-04-02 13:45:03 +02:00
parent 524bd6c691
commit 51a4d2a0b7

View file

@ -3,7 +3,7 @@ import { api, APIResponse } from "../API/API";
/** /**
* Use to remove a user from the system * Use to remove a user from the system
* @param props - The username of user to remove * @param {string} props.usernameToDelete - The username of user to remove
* @returns {boolean} True if removed, false if not * @returns {boolean} True if removed, false if not
* @example * @example
* const exampleUsername = "user"; * const exampleUsername = "user";
@ -29,7 +29,7 @@ function DeleteUser(props: { usernameToDelete: string }): boolean {
}) })
.catch((error) => { .catch((error) => {
alert("User has not been deleted"); alert("User has not been deleted");
console.error("An error occurred during creation:", error); console.error("An error occurred during deletion:", error);
}); });
return removed; return removed;
} }