diff --git a/src/helper/irs-api.ts b/src/helper/irs-api.ts index cf51467..4d7cbf0 100644 --- a/src/helper/irs-api.ts +++ b/src/helper/irs-api.ts @@ -55,6 +55,10 @@ export const doTransaction = async ( console.log('restranshemat', res) } catch (err) { console.log('errtranshemat', err); - throw err; - } + if (err.includes('Maaf Saldo anda tidak mencukupi')) { + throw 'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali'; + } else { + throw err; + } + } };