Skip to content

Commit

Permalink
fixed image path
Browse files Browse the repository at this point in the history
  • Loading branch information
chidubesteve committed Oct 21, 2024
1 parent f63c6f5 commit 1a4efd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/defaults.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// sets a default avatar if none is provided
export function getDefaultAvatar(avatar: string): string {
//using optional chaining to avoid throwing an error if avatar is null or undefined
return avatar?.trim() ? avatar : "/public/images/profile.png";
return avatar?.trim() ? avatar : "/images/profile.png";
}

// sets a fallback name if first_name is not provided or an empty string
Expand Down

0 comments on commit 1a4efd1

Please sign in to comment.