We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 359b0bc commit 39c4c27Copy full SHA for 39c4c27
1 file changed
src/views/RwsActivate.vue
@@ -97,10 +97,10 @@ export default {
97
return;
98
}
99
100
- const calls = [
101
- await action.bid(1000000001),
102
- actionDevices.add(dataDevices.value, account.value)
103
- ];
+ const calls = [await action.bid(1000000001)];
+ if (!dataDevices.value.includes(account.value)) {
+ calls.push(actionDevices.add(dataDevices.value, account.value));
+ }
104
105
await tx.send(() => batch(calls));
106
if (tx.error.value) {
0 commit comments