diff options
Diffstat (limited to 'packages/web-util/src/components/Button.tsx')
-rw-r--r-- | packages/web-util/src/components/Button.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/web-util/src/components/Button.tsx b/packages/web-util/src/components/Button.tsx index 758efafcf..26b778eec 100644 --- a/packages/web-util/src/components/Button.tsx +++ b/packages/web-util/src/components/Button.tsx @@ -45,8 +45,7 @@ export function Button<T extends OperationResult<A, B>, A, B>({ handler.onClick().then((resp) => { if (resp) { if (resp.type === "ok") { - // @ts-expect-error this is an operationOk - const result: OperationOk<any> = resp.body + const result: OperationOk<any> = resp // @ts-expect-error this is an operationOk const msg = handler.onOperationSuccess(result) if (msg) { |