Skip to content

Commit e24cf8f

Browse files
author
n3kosempai
committed
[release] solved unecesary
1 parent a48f21b commit e24cf8f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pages/appDetails/AppDetails.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export const AppDetails = ({ app, onBack }: AppDetailsProps) => {
8787
>("idle");
8888
const [isUninstalling, setIsUninstalling] = useState(false);
8989
const [showDonationModal, setShowDonationModal] = useState(false);
90+
const hasCryptoDonation = !!(urls?.donation && /bitcoin|ethereum/i.test(urls.donation));
9091
const [verificationResult, setVerificationResult] = useState<{
9192
verified: boolean;
9293
sources: Array<{
@@ -688,7 +689,7 @@ export const AppDetails = ({ app, onBack }: AppDetailsProps) => {
688689
}}
689690
>
690691
<Box sx={{ display: "flex", gap: 1 }}>
691-
{urls?.donation && installStatus === "idle" && (
692+
{hasCryptoDonation && installStatus === "idle" && (
692693
<Tooltip title={t("donation.tooltipSupport")} arrow placement="top">
693694
<Button
694695
variant="outlined"

0 commit comments

Comments
 (0)