mirror of
https://github.com/Hackdex-App/hackdex-website.git
synced 2026-04-22 23:17:23 -05:00
Fix Avatar url sometimes giving error
This commit is contained in:
parent
303ce2cbdc
commit
e5f959ece1
|
|
@ -43,7 +43,7 @@ export default function Avatar({
|
|||
onUpload?: (url: string) => void
|
||||
}) {
|
||||
const supabase = createClient()
|
||||
const [avatarUrl, setAvatarUrl] = useState<string | null>(url)
|
||||
const [avatarUrl, setAvatarUrl] = useState<string | null>(null)
|
||||
const [uploading, setUploading] = useState(false)
|
||||
const fileInputRef = useRef<HTMLInputElement | null>(null)
|
||||
const placeholderBgClass = getPlaceholderBgClass(uid)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user