diff --git a/src/renderer/src/pages/profile/profile-content.tsx b/src/renderer/src/pages/profile/profile-content.tsx
index 20171400..e8081b7f 100644
--- a/src/renderer/src/pages/profile/profile-content.tsx
+++ b/src/renderer/src/pages/profile/profile-content.tsx
@@ -1,5 +1,4 @@
import { UserProfile } from "@types";
-import { useTranslation } from "react-i18next";
import * as styles from "./profile.css";
import { SPACING_UNIT, vars } from "@renderer/theme.css";
@@ -8,9 +7,6 @@ export interface ProfileContentProps {
}
export const ProfileContent = ({ userProfile }: ProfileContentProps) => {
- const { t } = useTranslation("profile");
-
- console.log(userProfile.recentGames);
return (
<>
@@ -22,7 +18,6 @@ export const ProfileContent = ({ userProfile }: ProfileContentProps) => {
{userProfile.username}
-
Jogando ABC
@@ -55,15 +50,15 @@ export const ProfileContent = ({ userProfile }: ProfileContentProps) => {
>
{userProfile.recentGames.map((game) => {
return (
- <>
+

-
{game.title}
- >
+
{game.title}
+
);
})}
@@ -94,17 +89,17 @@ export const ProfileContent = ({ userProfile }: ProfileContentProps) => {
className={styles.profileContentBox}
style={{ flexDirection: "column" }}
>
- {userProfile.libraryGames.map((game) => {
+ {userProfile.libraryGames.map((game, index) => {
return (
- <>
+

-
{game.title}
- >
+
{game.title}
+
);
})}
diff --git a/src/renderer/src/pages/profile/profile.tsx b/src/renderer/src/pages/profile/profile.tsx
index 97868c84..c12226b9 100644
--- a/src/renderer/src/pages/profile/profile.tsx
+++ b/src/renderer/src/pages/profile/profile.tsx
@@ -22,7 +22,7 @@ export const Profile = () => {
setUserProfile(userProfile);
}
});
- }, [dispatch]);
+ }, [dispatch, username]);
return (