Skip to content

Commit

Permalink
fix: profile being shown in incorrect structure when no social links …
Browse files Browse the repository at this point in the history
…were present in the profile data

!nuf
  • Loading branch information
Miodec committed Nov 4, 2024
1 parent a5cd1d3 commit 64cbbfc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions frontend/src/ts/elements/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,12 @@ export async function update(
details.find(".keyboard .value").text(profile.details?.keyboard ?? "");

if (
profile.details?.socialProfiles?.github !== undefined ||
profile.details?.socialProfiles?.twitter !== undefined ||
profile.details?.socialProfiles?.website !== undefined
(profile.details?.socialProfiles?.github !== undefined &&
profile.details?.socialProfiles?.github !== "") ||
(profile.details?.socialProfiles?.twitter !== undefined &&
profile.details?.socialProfiles?.twitter !== "") ||
(profile.details?.socialProfiles?.website !== undefined &&
profile.details?.socialProfiles?.website !== "")
) {
socials = true;
const socialsEl = details.find(".socials .value");
Expand Down

0 comments on commit 64cbbfc

Please sign in to comment.