From 467920d70e999329ce24e0c47953c00bc5bc276e Mon Sep 17 00:00:00 2001 From: "Filip V." Date: Fri, 26 Jul 2024 13:01:37 -0400 Subject: [PATCH] Block welshare health (#4410) --- src/locales/messages.pot | 3 +++ src/packages/v2v3/hooks/usePayProjectDisabled.ts | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/locales/messages.pot b/src/locales/messages.pot index f89068ae21..4fd4de62c2 100644 --- a/src/locales/messages.pot +++ b/src/locales/messages.pot @@ -1622,6 +1622,9 @@ msgstr "" msgid "Link minters of this NFT to your project's website, Discord, etc." msgstr "" +msgid "Welshare Health has requested that payments to their project be paused." +msgstr "" + msgid "Cycle #1 starts when you create your project. With unlocked cycles, you can edit your project's rules at any time. This gives you more flexibility, but may appear risky to supporters. Switching to locked cycles will help you build supporter confidence." msgstr "" diff --git a/src/packages/v2v3/hooks/usePayProjectDisabled.ts b/src/packages/v2v3/hooks/usePayProjectDisabled.ts index 2a269e5460..f6015b3b84 100644 --- a/src/packages/v2v3/hooks/usePayProjectDisabled.ts +++ b/src/packages/v2v3/hooks/usePayProjectDisabled.ts @@ -24,7 +24,7 @@ export function usePayProjectDisabled(): { reason: PayDisabledReason | undefined message: string | undefined } { - const { projectMetadata } = useProjectMetadataContext() + const { projectMetadata, projectId } = useProjectMetadataContext() const { fundingCycleMetadata, loading } = useProjectContext() const isBlockedProject = useV2V3BlockedProject() const { isAddressListedInOFAC, isLoading: isOFACLoading } = @@ -39,6 +39,15 @@ export function usePayProjectDisabled(): { } } + // Hard-coded block for Welshare Health, at their request. TODO: Remove this after 2024-07-28, Sunday, 04:58:47 AM UTC. + if (projectId && projectId === 698) { + return { + ...disabled, + reason: PayDisabledReason.PAUSED, + message: t`Welshare Health has requested that payments to their project be paused.`, + } + } + if (isBlockedProject) { return { ...disabled,