- fix error message when balance supplier is not enough

This commit is contained in:
Fadli 2022-11-29 00:01:54 +07:00
parent c3c1433197
commit 8e6fe1b164

View File

@ -55,6 +55,10 @@ export const doTransaction = async (
console.log('restranshemat', res) console.log('restranshemat', res)
} catch (err) { } catch (err) {
console.log('errtranshemat', err); console.log('errtranshemat', 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; throw err;
} }
}
}; };