remove unnecessary sort

This commit is contained in:
luisa.bellitto 2025-06-30 09:44:51 +02:00 committed by Rudi Regentonne
parent 7e48767ed6
commit 2006c2c510

View file

@ -20,13 +20,6 @@ export default function StandardImageList({ user }: { user: UserProfile }) {
}
}, [user.username]);
useEffect(() => {
images.sort(
(a, b) =>
new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()
);
}, [user]);
const fetchUserPosts = async () => {
try {
const response = await api.get(`/posts/getUserPosts/${user.username}`);