Skip to content

Commit

Permalink
Simplify code.
Browse files Browse the repository at this point in the history
  • Loading branch information
timvanoostrom committed Dec 18, 2024
1 parent bbc3939 commit b33b7ee
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/server/services/cms-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,9 @@ async function getGeneralPage(
};
},
formatUrl({ url }) {
const urls = {
private: `${url}/ziet-amsterdam/?AppIdt=app-data`,
'private-attributes': '', // Not used
commercial: `${url}/overzicht-producten-ondernemers/?AppIdt=app-data`,
};
return urls[profileType] || urls.private;
return profileType === 'commercial'
? `${url}/overzicht-producten-ondernemers/?AppIdt=app-data`
: `${url}/ziet-amsterdam/?AppIdt=app-data`;
},
});

Expand Down

0 comments on commit b33b7ee

Please sign in to comment.