From 230fdc1391ddc82d08c1a9ee8512d8bc1a860e27 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Mon, 12 Sep 2022 20:50:24 +0800 Subject: [PATCH] add hidden params checks --- src/views/components/OperationModal/index.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/views/components/OperationModal/index.vue b/src/views/components/OperationModal/index.vue index b1e4a8dc..78886008 100644 --- a/src/views/components/OperationModal/index.vue +++ b/src/views/components/OperationModal/index.vue @@ -381,6 +381,22 @@ export default { }, handleOk(bvModalEvt) { bvModalEvt.preventDefault() + if (!this.fee) { + this.error = 'fee is required' + return + } if (!this.feeDenom) { + this.error = 'fee symbol is required' + return + } if (!this.accountNumber) { + this.error = 'Account number is required' + return + } if (!this.sequence) { + this.error = 'Sequence is required' + return + } if (!this.chainId) { + this.error = 'Chain Id is required' + return + } this.$refs.simpleRules.validate().then(ok => { if (ok) { this.sendTx().then(ret => {