mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-09 03:37:45 +03:00
Merge branch 'rc/v2.0' into feat/show-toast-after-create-shortcut
This commit is contained in:
commit
c31935de0b
@ -51,10 +51,7 @@ export function UserContent({
|
|||||||
const { formatDistance, formatDiffInMillis } = useDate();
|
const { formatDistance, formatDiffInMillis } = useDate();
|
||||||
|
|
||||||
const formatPlayTime = () => {
|
const formatPlayTime = () => {
|
||||||
const seconds = userProfile.libraryGames.reduce(
|
const seconds = userProfile.totalPlayTimeInSeconds;
|
||||||
(acc, game) => acc + game.playTimeInSeconds,
|
|
||||||
0
|
|
||||||
);
|
|
||||||
const minutes = seconds / 60;
|
const minutes = seconds / 60;
|
||||||
|
|
||||||
if (minutes < MAX_MINUTES_TO_SHOW_IN_PLAYTIME) {
|
if (minutes < MAX_MINUTES_TO_SHOW_IN_PLAYTIME) {
|
||||||
|
@ -263,6 +263,7 @@ export interface UserProfile {
|
|||||||
id: string;
|
id: string;
|
||||||
displayName: string;
|
displayName: string;
|
||||||
profileImageUrl: string | null;
|
profileImageUrl: string | null;
|
||||||
|
totalPlayTimeInSeconds: number;
|
||||||
libraryGames: UserGame[];
|
libraryGames: UserGame[];
|
||||||
recentGames: UserGame[];
|
recentGames: UserGame[];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user