From f2688c33b6cdeca96bab3486da3407bf0bf33c22 Mon Sep 17 00:00:00 2001 From: Art Date: Fri, 11 Nov 2022 12:45:50 +0100 Subject: [PATCH] fix(1854): view asset launches deposit (#2026) --- libs/deposits/src/lib/deposit-form.tsx | 1 + libs/ui-toolkit/src/components/dialog/dialog.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/deposits/src/lib/deposit-form.tsx b/libs/deposits/src/lib/deposit-form.tsx index 08aa7d3f5..169f17090 100644 --- a/libs/deposits/src/lib/deposit-form.tsx +++ b/libs/deposits/src/lib/deposit-form.tsx @@ -190,6 +190,7 @@ export const DepositForm = ({ data-testid="view-asset-details" className="text-sm underline" onClick={(e) => { + e.preventDefault(); openAssetDetailsDialog(selectedAsset, e.target as HTMLElement); }} > diff --git a/libs/ui-toolkit/src/components/dialog/dialog.tsx b/libs/ui-toolkit/src/components/dialog/dialog.tsx index 4288f55e8..1bba4f73b 100644 --- a/libs/ui-toolkit/src/components/dialog/dialog.tsx +++ b/libs/ui-toolkit/src/components/dialog/dialog.tsx @@ -58,7 +58,7 @@ export function Dialog({ onChange?.(x)}>