From 1aa8f9a1e85c4a67adb42eb4ca27d685659fc86e Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Wed, 22 Sep 2021 13:51:53 +1000 Subject: [PATCH] grid: optimistic app install Fixes urbit/landscape#1169 --- pkg/grid/src/state/docket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/grid/src/state/docket.ts b/pkg/grid/src/state/docket.ts index 7610339a1e..c16e665cb5 100644 --- a/pkg/grid/src/state/docket.ts +++ b/pkg/grid/src/state/docket.ts @@ -108,8 +108,8 @@ const useDocketState = create((set, get) => ({ if (!treaty) { throw new Error('Bad install'); } + set((state) => addCharge(state, desk, { ...treaty, chad: { install: null } })); if (useMockData) { - set((state) => addCharge(state, desk, { ...treaty, chad: { install: null } })); await new Promise((res) => setTimeout(() => res(), 10000)); set((state) => addCharge(state, desk, { ...treaty, chad: { glob: null } })); }