From 178840f3ef089d4438420b3593f0a339d1274a00 Mon Sep 17 00:00:00 2001 From: Terguntreklar Date: Wed, 27 Dec 2023 22:07:21 +0200 Subject: [PATCH] fix randomized avatar updated the http api version, apparently I'm only three months late! --- .gitignore | 1 + src/App.js | 1 - src/MessageRoom.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8b182cf..1de6994 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ yarn-debug.log* yarn-error.log* .env +src/firebase.js diff --git a/src/App.js b/src/App.js index a65c937..72e7dcb 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,4 @@ import "./App.css"; -import 'dotenv/config' import React from "react"; import { auth } from "./firebase"; import { SignIn } from "./SignIn"; diff --git a/src/MessageRoom.js b/src/MessageRoom.js index 0ffee81..f4dab15 100644 --- a/src/MessageRoom.js +++ b/src/MessageRoom.js @@ -45,7 +45,7 @@ export default function MessageRoom() { const uid = auth.currentUser.uid; const photoURL = auth.currentUser.photoURL || - `https://avatars.dicebear.com/api/human/${uid}.svg`; //HTTP-API, creates unique avatar + `https://api.dicebear.com/7.x/thumbs/svg?seed=${uid}`; //HTTP-API, creates unique avatar const displayName = auth.currentUser.displayName || "Anonymous user"; const scrollToBottom = () => { scrolldiv.current.scrollIntoView({ behavior: "smooth" });