- fix error respon when balance is not enough

This commit is contained in:
Fadli 2023-03-09 10:57:54 +07:00
parent cfc13d60af
commit b657df70a8

View File

@ -132,11 +132,6 @@ export const doTransaction = async (
} catch (err) {
console.log('errtransaction', err);
console.log('errtransaction2', err.response.data);
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;
}
}
};