Skip to content

Commit

Permalink
fix: public profile visibility not updating (#740)
Browse files Browse the repository at this point in the history
* fix: public profile skeleton bug and visibility not updating

* chore: downgrade query-client dep
  • Loading branch information
spaenleh authored Jan 29, 2025
1 parent 66c4754 commit 11b9276
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export function EditPublicProfile({
const {
register,
handleSubmit,
watch,
formState: { errors, isValid },
} = useForm<Inputs>({
mode: 'onChange',
Expand Down Expand Up @@ -92,6 +93,7 @@ export function EditPublicProfile({

// register visibility checkbox manually
const visibility = register('visibility');
const visibilityValue = watch('visibility');

return (
<BorderedSection title={t('TITLE')}>
Expand Down Expand Up @@ -160,10 +162,12 @@ export function EditPublicProfile({
control={
<Checkbox
color="primary"
checked={visibilityValue}
name={visibility.name}
onChange={visibility.onChange}
/>
}
ref={visibility.ref}
label={t('VISIBILITY_LABEL')}
/>
<Stack direction="row" gap={1} justifyContent="flex-end">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export function PublicProfile(): JSX.Element {
</BorderedSection>
);
}

return (
<BorderedSection
id={PUBLIC_PROFILE_NOT_CONFIGURED_CONTAINER_ID}
Expand Down

0 comments on commit 11b9276

Please sign in to comment.