Skip to content

Commit adacc58

Browse files
committed
fix(discord-status): correct last seen timestamp conversion to milliseconds
1 parent 6f1e5b5 commit adacc58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/discord-status.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function DiscordStatus({ userId }: DiscordStatusProps) {
2929

3030
if (data.status === 'offline') {
3131
setStatus('offline');
32-
setLastSeenAt(data.last_seen_at.unix);
32+
setLastSeenAt(data.last_seen_at.unix * 1000);
3333
} else {
3434
setStatus('online');
3535

0 commit comments

Comments
 (0)