Skip to content

Commit 39c4c27

Browse files
committed
fix subscription renewal
1 parent 359b0bc commit 39c4c27

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/views/RwsActivate.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ export default {
9797
return;
9898
}
9999
100-
const calls = [
101-
await action.bid(1000000001),
102-
actionDevices.add(dataDevices.value, account.value)
103-
];
100+
const calls = [await action.bid(1000000001)];
101+
if (!dataDevices.value.includes(account.value)) {
102+
calls.push(actionDevices.add(dataDevices.value, account.value));
103+
}
104104
105105
await tx.send(() => batch(calls));
106106
if (tx.error.value) {

0 commit comments

Comments
 (0)