From 1142d9417e690bf4b0093ee84e42352dab149793 Mon Sep 17 00:00:00 2001 From: Shinji Date: Wed, 8 May 2024 13:28:24 +0000 Subject: [PATCH] fix: display the swapper's title instead of the swapper's group as their displayed name --- widget/embedded/src/utils/meta.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/embedded/src/utils/meta.ts b/widget/embedded/src/utils/meta.ts index fefaa649ef..ceb55ee6b3 100644 --- a/widget/embedded/src/utils/meta.ts +++ b/widget/embedded/src/utils/meta.ts @@ -21,7 +21,7 @@ export function getSwapperDisplayName( swapperId: string, swappers: SwapperMeta[] ) { - return swappers.find((swapper) => swapper.id === swapperId)?.swapperGroup; + return swappers.find((swapper) => swapper.id === swapperId)?.title; } export function findToken(t: Asset, tokens: Token[]) {