Skip to content

Commit 60c6ff6

Browse files
committed
fix: typo 'Alchemy Pay'
1 parent b985d34 commit 60c6ff6

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

src/shared/constant/index.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,7 @@ export const UNCONFIRMED_HEIGHT = 4194303;
299299

300300
export enum PaymentChannelType {
301301
MoonPay = 'moonpay',
302-
AlchePay = 'alchepay',
303-
302+
AlchemyPay = 'alchemypay',
304303
Transak = 'transak'
305304
}
306305

@@ -309,9 +308,9 @@ export const PAYMENT_CHANNELS = {
309308
name: 'MoonPay',
310309
img: './images/artifacts/moonpay.png'
311310
},
312-
alchepay: {
313-
name: 'AlchePay',
314-
img: './images/artifacts/alchepay.png'
311+
alchemypay: {
312+
name: 'Alchemy Pay',
313+
img: './images/artifacts/alchemypay.png'
315314
},
316315

317316
transak: {

src/ui/pages/BuyBTC/BuyBTCModal.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function PaymentItem(props: { channelType: PaymentChannelType; onClick }) {
2727

2828
export const BuyBTCModal = ({ onClose }: { onClose: () => void }) => {
2929
const [disclaimerModalVisible, setDisclaimerModalVisible] = useState(false);
30-
const [channelType, setChannelType] = useState<PaymentChannelType>(PaymentChannelType.AlchePay);
30+
const [channelType, setChannelType] = useState<PaymentChannelType>(PaymentChannelType.AlchemyPay);
3131

3232
const [channels, setChannels] = useState<string[]>([]);
3333
const wallet = useWallet();
@@ -46,7 +46,7 @@ export const BuyBTCModal = ({ onClose }: { onClose: () => void }) => {
4646

4747
const isMoonpayEnabled = channels.includes(PaymentChannelType.MoonPay);
4848
const isTransakEnabled = channels.includes(PaymentChannelType.Transak);
49-
const isAlchePayEnabled = channels.includes(PaymentChannelType.AlchePay);
49+
const isAlchemyPayEnabled = channels.includes(PaymentChannelType.AlchemyPay);
5050

5151
return (
5252
<BottomModal onClose={onClose}>
@@ -77,11 +77,11 @@ export const BuyBTCModal = ({ onClose }: { onClose: () => void }) => {
7777
/>
7878
) : null}
7979

80-
{isAlchePayEnabled ? (
80+
{isAlchemyPayEnabled ? (
8181
<PaymentItem
82-
channelType={PaymentChannelType.AlchePay}
82+
channelType={PaymentChannelType.AlchemyPay}
8383
onClick={() => {
84-
setChannelType(PaymentChannelType.AlchePay);
84+
setChannelType(PaymentChannelType.AlchemyPay);
8585
setDisclaimerModalVisible(true);
8686
}}
8787
/>

0 commit comments

Comments
 (0)