From cb759e7a09e7a61e83c5a316b2707a090728281a Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Mon, 4 Nov 2024 02:46:31 +0100 Subject: [PATCH] Fixed socials order and prefix spacing. --- components/actors/bio.vue | 3 +-- src/actors.js | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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,