Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Name contracts are acting with weird behavior #2923

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading