Skip to content

Commit

Permalink
fix: bug bases_locales has never habilitation valid
Browse files Browse the repository at this point in the history
  • Loading branch information
fufeck committed Sep 12, 2024
1 parent ecfa0c0 commit 0bb48a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pages/communes/[code].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const CommuneSource = ({ code }: CommuneSourcePageProps) => {
page: page.current,
limit: page.limit,
});

await getBasesLocalesIsHabilitationValid(res.results);
setBals(res.results);
setPageMesAdresses({
Expand Down
4 changes: 2 additions & 2 deletions pages/mes-adresses/base-locale/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ const BaseLocale = () => {
null
);

async function calcStatus(baseLocale) {
async function calcStatus(baseLocale: BaseLocaleType) {
const habilitationValid = await getBaseLocaleIsHabilitationValid(
baseLocale._id
baseLocale.id
);
const status = computeStatus(
baseLocale.status,
Expand Down

0 comments on commit 0bb48a4

Please sign in to comment.