From 8725de3c35b8b97aec245f837ed643d09f26e218 Mon Sep 17 00:00:00 2001
From: katspaugh <381895+katspaugh@users.noreply.github.com>
Date: Tue, 21 Jan 2025 13:26:39 +0100
Subject: [PATCH] Fix(Swaps): TWAP order decoding
---
apps/web/src/components/tx/confirmation-views/index.tsx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/apps/web/src/components/tx/confirmation-views/index.tsx b/apps/web/src/components/tx/confirmation-views/index.tsx
index 5c080564de..2a80b18587 100644
--- a/apps/web/src/components/tx/confirmation-views/index.tsx
+++ b/apps/web/src/components/tx/confirmation-views/index.tsx
@@ -11,6 +11,7 @@ import {
isSafeToL2MigrationTxData,
isSafeUpdateTxData,
isSwapOrderTxInfo,
+ isTwapOrderTxInfo,
} from '@/utils/transaction-guards'
import { type ReactNode, useContext, useMemo } from 'react'
import TxData from '@/components/transactions/TxDetails/TxData'
@@ -55,7 +56,7 @@ const getConfirmationViewComponent = ({
if (isExecTxData(txData)) return
- if (isSwapOrderTxInfo(txInfo)) return
+ if (isSwapOrderTxInfo(txInfo) || isTwapOrderTxInfo(txInfo)) return
if (isAnyStakingTxInfo(txInfo)) return