We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee388a8 commit 08aa93bCopy full SHA for 08aa93b
zod-transform-socials/index.ts
@@ -22,15 +22,14 @@ export const transformSocial = (social: SocialsSchema) => {
22
const data = extractSocialData({ url });
23
24
return {
25
- ...data,
26
icon:
27
icon ??
28
(platform === undefined
29
? data.icon
30
: getSocialIcon(platform as INNER_SOCIAL_TYPES)),
31
- url,
32
- platform,
33
- username,
+ url: url ?? data.url,
+ platform: platform ?? data.platform,
+ username: username ?? data.username,
34
};
35
36
0 commit comments