Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
MigProPlayer authored Oct 22, 2024
2 parents cb8d9ae + 1656ff1 commit 8e4e878
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8e4e878

Please sign in to comment.