mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-09-25 18:21:14 +02:00
Fix file uploader profile
This commit is contained in:
@@ -5,8 +5,12 @@ import "./FileUploader.css";
|
||||
export function FileUploader(props) {
|
||||
const uploader = props.uploader;
|
||||
|
||||
let avatarUrl = uploader.avatar ?? DefaultAvatar;
|
||||
if(!avatarUrl.startsWith("http")){
|
||||
avatarUrl = `/d/${avatarUrl}`;
|
||||
}
|
||||
let avatarStyles = {
|
||||
backgroundImage: `url(${uploader.avatar ?? DefaultAvatar})`
|
||||
backgroundImage: `url(${avatarUrl})`
|
||||
};
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user