outsourced modals
This commit is contained in:
@@ -10,7 +10,11 @@ export const fetchUsers = async () => {
|
||||
return data;
|
||||
};
|
||||
|
||||
export const confirmUser = async (username: string) => {
|
||||
export const confirmUser = async (username: string | null) => {
|
||||
if (!username) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.warn("confirmUser is fetching!");
|
||||
const response = await fetch(
|
||||
`${API_BASE}/default/confirm-user?username=${username}`,
|
||||
|
||||
Reference in New Issue
Block a user