Skip to content

Commit

Permalink
fix(profil): elu tags
Browse files Browse the repository at this point in the history
  • Loading branch information
OverGlass committed Sep 24, 2024
1 parent 13c82de commit d19ed92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/screens/profil/elu/components/DeclaEluCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ export const EluBlock = ({
}

export default function (props: { declaration?: number; cotisation?: number }) {
const { tags: codes } = useGetTags({ tags: ['elu'] }) ?? []
const { tags: _codes } = useGetTags({ tags: ['elu'] })
const codes = _codes || []
const [openIban, setOpenIban] = useState(false)
const [openDecla, setOpenDecla] = useState(false)
const handleOpenIban = () => setOpenIban(true)
Expand Down
2 changes: 1 addition & 1 deletion src/screens/profil/elu/components/InfoEluCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const Elu = (props: { mandates: RestElectedProfileResponse['elect_mandates']; ta
}

export default function (props: { profil: RestElectedProfileResponse }) {
const tags = useGetTags({ tags: ['adherent', 'elu', 'sympathisant'] })
const { tags } = useGetTags({ tags: ['adherent', 'elu', 'sympathisant'] })
const content = props.profil.elect_mandates.length > 0 ? <Elu mandates={props.profil.elect_mandates} tags={tags ?? []} /> : <NotElu />
return (
<VoxCard>
Expand Down

0 comments on commit d19ed92

Please sign in to comment.