diff --git a/components/actors/bio.vue b/components/actors/bio.vue index eafaa61..e54dd66 100644 --- a/components/actors/bio.vue +++ b/components/actors/bio.vue @@ -326,8 +326,7 @@ :class="`icon-social icon-${social.platform} icon-generic`" /> - - {{ social.handle }} + {{ social.handle }} diff --git a/src/actors.js b/src/actors.js index 9b99323..ab34b82 100644 --- a/src/actors.js +++ b/src/actors.js @@ -55,7 +55,7 @@ const keyMap = { isCircumcised: 'circumcised', }; -const socialsOrder = ['onlyfans', 'twitter']; +const socialsOrder = ['onlyfans', 'twitter', null]; export function curateActor(actor, context = {}) { return { @@ -121,7 +121,7 @@ export function curateActor(actor, context = {}) { url: social.url, platform: social.platform, handle: social.handle, - })).toSorted((socialA, socialB) => socialsOrder.indexOf(socialB.platform) - socialsOrder.indexOf(socialA.platform)), + })).toSorted((socialA, socialB) => socialsOrder.indexOf(socialA.platform) - socialsOrder.indexOf(socialB.platform)), profiles: context.profiles?.map((profile) => ({ id: profile.id, description: profile.description,