Fix: Typo

This commit is contained in:
Daniel Hougaard
2024-04-05 11:11:26 -07:00
parent a16ce8899b
commit aca9b47f82
@@ -31,7 +31,7 @@ export const OrgRoleTable = ({ onSelectRole }: Props) => {
const [searchRoles, setSearchRoles] = useState(""); const [searchRoles, setSearchRoles] = useState("");
const { currentOrg } = useOrganization(); const { currentOrg } = useOrganization();
const orgId = currentOrg?.id || ""; const orgId = currentOrg?.id || "";
const { popUp, handlePopUpOpen, handlePopUpClose } = usePopUp(["deleteRole"] as const); const { popUp, handlePopUpOpen, handlePopUpClose } = usePopUp(["deleteRole"] as const);
const { data: roles, isLoading: isRolesLoading } = useGetOrgRoles(orgId); const { data: roles, isLoading: isRolesLoading } = useGetOrgRoles(orgId);
@@ -49,7 +49,7 @@ export const OrgRoleTable = ({ onSelectRole }: Props) => {
handlePopUpClose("deleteRole"); handlePopUpClose("deleteRole");
} catch (err) { } catch (err) {
console.log(err); console.log(err);
createNotification({ type: "error", text: "Failed to create role" }); createNotification({ type: "error", text: "Failed to delete role" });
} }
}; };