Skip to content

Commit

Permalink
labels over titles
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-kazantseva committed Oct 29, 2024
1 parent 701a1fa commit d579ad4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hooks/useGetPurposeMessageKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export const useGetPurposeMessageKeys = ({
// the purpose type is unique for the bundle
[...Object.keys(consentSelection ?? {}), 'Essential'].reduce(
(allMessages, purposeType) => {
if (allMessages[purposeType]) {
return allMessages;
}
const purposeMessageLabel = `${PURPOSE_MESSAGE_PREFIX}.${purposeType}.title`;
return {
...allMessages,
Expand Down

0 comments on commit d579ad4

Please sign in to comment.