Skip to content

Commit

Permalink
fix: added necessary fixes to fix the deployment (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
SchadenKai authored Sep 23, 2024
1 parent 2f29516 commit eac845f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions web/src/app/auth/signup/SignupForms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ export function SignupForms({ shouldVerify }: { shouldVerify?: boolean }) {

let errorMsg = "Unknown error";
if (errorDetail === "REGISTER_USER_ALREADY_EXISTS") {
errorMsg =
"An account already exwkists with the specified email.";
errorMsg = "An account already exists with the specified email.";
}
toast({
title: "Error",
Expand Down
6 changes: 5 additions & 1 deletion web/src/app/chat/sessionSidebar/GlobalSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ export const GlobalSidebar = ({ openSidebar, user }: GlobalSidebarProps) => {
<Separator className="mt-4" />
<div className="flex flex-col gap-3 pt-4">
{data?.map((teamspace, i) => (
<TeamspaceBubble teamspace={teamspace} link={defaultPage} />
<TeamspaceBubble
key={teamspace.name}
teamspace={teamspace}
link={defaultPage}
/>
))}
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions web/src/components/UserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { User } from "lucide-react";
import React from "react";
const getNameInitials = (fullName: string) => {
const names = fullName.split(" ");
const initials = names.map((name) => name[0]?.toUpperCase() || "").join("");
return initials;
return names[0][0].toUpperCase() + names[names.length - 1][0].toUpperCase();
};
const generateGradient = (initials: string) => {
const colors = {
Expand Down

0 comments on commit eac845f

Please sign in to comment.