From ba6eca41f673f8db4d9f686fb7dab2358a4dc5eb Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Thu, 29 Dec 2022 16:05:43 +0700 Subject: no message --- src/pages/shop/checkout.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/pages') diff --git a/src/pages/shop/checkout.js b/src/pages/shop/checkout.js index 6b3231df..286219c3 100644 --- a/src/pages/shop/checkout.js +++ b/src/pages/shop/checkout.js @@ -32,22 +32,6 @@ export default function Checkout() { { name: 'MANDIRI', number: '155-0067-6869-75' }, ]; - const changePayment = (index) => { - let payment = payments[index]; - if (selectedPayment == payment.name) { - navigator.clipboard.writeText(payment.number) - .then(() => { - toast.success('Nomor bank berhasil disalin', { position: 'bottom-center', duration: 1500 }); - }) - .catch((e) => { - toast.error(e, { position: 'bottom-center', duration: 10000 }); - }); - } else { - toast.success('Metode pembayaran berhasil diubah, tekan sekali lagi untuk salin nomor bank', { position: 'bottom-center', duration: 3000 }); - } - setSelectedPayment(payment.name); - } - useEffect(() => { const getAddress = async () => { if (auth?.id) { @@ -221,7 +205,7 @@ export default function Checkout() {