Skip to content

Commit

Permalink
fix: Remove the setters of the contract types at the top of the load …
Browse files Browse the repository at this point in the history
…function (#2923)
  • Loading branch information
Mahmoud-Emad authored Jun 9, 2024
1 parent 0139c63 commit 9ce9f80
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/playground/src/weblets/tf_contracts_list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,6 @@ async function loadContracts(type?: ContractType) {
loadingTablesMessage.value = undefined;
nodeInfo.value = {};
contracts.value = [];
nodeContracts.value = [];
rentContracts.value = [];
nameContracts.value = [];
cachedNodeIDs.value = [];
try {
Expand All @@ -314,7 +311,7 @@ async function loadContracts(type?: ContractType) {
]);
}
contracts.value.push(...nodeContracts.value, ...nameContracts.value, ...rentContracts.value);
contracts.value = [...nodeContracts.value, ...nameContracts.value, ...rentContracts.value];
// Update the total cost of the contracts.
await getTotalCost();
Expand Down

0 comments on commit 9ce9f80

Please sign in to comment.