Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Disable eth payment on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
alantoa committed Nov 1, 2023
1 parent 747a0c6 commit b085fbe
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions packages/app/components/creator-token/buy-creator-token.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,24 @@ type Query = {
};

const { useParam } = createParam<Query>();
const PAYMENT_METHODS = [
{
title: "USDC",
value: "USDC",
},
{
title: "ETH",
value: "ETH",
},
];
// Disable ETH payment on dev for now because it doesn't support the dev environment yet.
const PAYMENT_METHODS = __DEV__
? [
{
title: "USDC",
value: "USDC",
},
]
: [
{
title: "USDC",
value: "USDC",
},
{
title: "ETH",
value: "ETH",
},
];
const SELECT_LIST = [
{
title: "Buy",
Expand All @@ -81,7 +89,7 @@ export const BuyCreatorToken = () => {
);

const [paymentMethod, setPaymentMethod] = useState<"ETH" | "USDC">(
selectedAction === "buy" ? "ETH" : "USDC"
__DEV__ ? "USDC" : selectedAction === "buy" ? "ETH" : "USDC"
);
const buyToken = useCreatorTokenBuy({ username, tokenAmount, paymentMethod });

Expand Down

0 comments on commit b085fbe

Please sign in to comment.