Skip to content

Commit

Permalink
Enable ztg payments via card
Browse files Browse the repository at this point in the history
  • Loading branch information
saboonikhil committed Oct 16, 2024
1 parent 7ae2ff3 commit 541c4a5
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pages/deposit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,20 +287,6 @@ const DepositPage: NextPage = () => {
DepositPaymentMethod | undefined
>("crypto");

const disabledPaymentMethods = useMemo<
DepositPaymentMethod[] | undefined
>(() => {
if (currency === "ztg") {
return ["card"];
}
}, [currency]);

useEffect(() => {
if (currency === "ztg" && method === "buy" && paymentMethod === "card") {
setPaymentMethod(undefined);
}
}, [currency, method, paymentMethod]);

const encodedAddress =
wallet.realAddress &&
currency &&
Expand Down Expand Up @@ -342,8 +328,6 @@ const DepositPage: NextPage = () => {
labels={DepositPaymentMethodLabels}
selected={paymentMethod}
onChange={setPaymentMethod}
disabled={disabledPaymentMethods}
disabledItemClassName="!bg-misty-harbor text-sky-600"
className=""
itemClassName="text-center center outline-none rounded-lg bg-white p-3 leading-10"
selectedItemClassName="!bg-ice-hush"
Expand Down

0 comments on commit 541c4a5

Please sign in to comment.