Merge branch 'main' into patch-1

This commit is contained in:
MigPro 2024-10-22 23:10:30 +01:00 committed by GitHub
commit 8e4e87840a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ import { useTranslation } from "react-i18next";
export function UploadBackgroundImageButton() {
const [isUploadingBackgroundImage, setIsUploadingBackgorundImage] =
useState(false);
const { userDetails } = useUserDetails();
const { hasActiveSubscription } = useUserDetails();
const { t } = useTranslation("user_profile");
@ -47,8 +47,7 @@ export function UploadBackgroundImageButton() {
}
};
if (!isMe || !userDetails?.subscription) return null;
if (userDetails.subscription.plan.name !== "plus") return null;
if (!isMe || !hasActiveSubscription) return null;
return (
<Button