Skip to content

Commit 79769d6

Browse files
committed
[TOOL-3054] Dashboard: Fix Engine backend wallet list not updating on create/delete (#5983)
1 parent b6d65cf commit 79769d6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

apps/dashboard/src/@3rdweb-sdk/react/hooks/useEngine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function useEngineBackendWallets(params: {
7373
}) {
7474
const { instanceUrl, authToken } = params;
7575
return useQuery({
76-
queryKey: [engineKeys.backendWallets(instanceUrl), authToken],
76+
queryKey: [...engineKeys.backendWallets(instanceUrl), authToken],
7777
queryFn: async () => {
7878
const res = await fetch(`${instanceUrl}backend-wallet/get-all?limit=50`, {
7979
method: "GET",

apps/dashboard/src/app/team/[team_slug]/(team)/~/engine/(instance)/[engineId]/overview/components/backend-wallets-table.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { WalletAddress } from "@/components/blocks/wallet-address";
2+
import { Spinner } from "@/components/ui/Spinner/Spinner";
23
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
34
import { Badge } from "@/components/ui/badge";
45
import { Button } from "@/components/ui/button";
@@ -670,7 +671,9 @@ function DeleteModal({
670671
variant="destructive"
671672
onClick={onClick}
672673
disabled={isLocalWallet && !ackDeletion}
674+
className="gap-2"
673675
>
676+
{deleteBackendWallet.isPending && <Spinner className="size-4" />}
674677
Delete
675678
</Button>
676679
</ModalFooter>

0 commit comments

Comments
 (0)