Skip to content

Commit

Permalink
fix randomized avatar
Browse files Browse the repository at this point in the history
updated the http api version, apparently I'm only three months late!
  • Loading branch information
Terguntreklar committed Dec 27, 2023
1 parent e418bde commit 178840f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ yarn-debug.log*
yarn-error.log*

.env
src/firebase.js
1 change: 0 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "./App.css";
import 'dotenv/config'
import React from "react";
import { auth } from "./firebase";
import { SignIn } from "./SignIn";
Expand Down
2 changes: 1 addition & 1 deletion src/MessageRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
Expand Down

0 comments on commit 178840f

Please sign in to comment.