Skip to content

Commit 64cbbfc

Browse files
committed
fix: profile being shown in incorrect structure when no social links were present in the profile data
!nuf
1 parent a5cd1d3 commit 64cbbfc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

frontend/src/ts/elements/profile.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,12 @@ export async function update(
249249
details.find(".keyboard .value").text(profile.details?.keyboard ?? "");
250250

251251
if (
252-
profile.details?.socialProfiles?.github !== undefined ||
253-
profile.details?.socialProfiles?.twitter !== undefined ||
254-
profile.details?.socialProfiles?.website !== undefined
252+
(profile.details?.socialProfiles?.github !== undefined &&
253+
profile.details?.socialProfiles?.github !== "") ||
254+
(profile.details?.socialProfiles?.twitter !== undefined &&
255+
profile.details?.socialProfiles?.twitter !== "") ||
256+
(profile.details?.socialProfiles?.website !== undefined &&
257+
profile.details?.socialProfiles?.website !== "")
255258
) {
256259
socials = true;
257260
const socialsEl = details.find(".socials .value");

0 commit comments

Comments
 (0)