Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/enterprise/license.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::{
VERSION,
};

const LICENSE_SERVER_URL: &str = "https://update-service-dev.defguard.net/api/license/renew";
const LICENSE_SERVER_URL: &str = "https://pkgs.defguard.net/api/license/renew";

static LICENSE: RwLock<Option<License>> = RwLock::new(None);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const ProfileDetailsForm = () => {
const queryClient = useQueryClient();
const isAdmin = useAuthStore((state) => state.isAdmin);
const isMe = useUserProfileStore((state) => state.isMe);
const [fetchGroups] = useState(false);
const [fetchGroups, setFetchGroups] = useState(false);
const {
user: { editUser },
groups: { getGroups },
Expand Down Expand Up @@ -220,6 +220,11 @@ export const ProfileDetailsForm = () => {
}
}, [submitSubject, getValues, userProfile?.user.username]);

useEffect(() => {
setTimeout(() => setFetchGroups(true), 500);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

return (
<>
<form onSubmit={handleSubmit(onValidSubmit, onInvalidSubmit)}>
Expand Down