mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-04-10 18:49:05 +02:00
Fix file uploader profile
This commit is contained in:
parent
709f8ef95f
commit
40e70f8ffa
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user