From ca06ff5549d54e7740a00415809b7af9a6c7fc4d Mon Sep 17 00:00:00 2001 From: Izumi Hoshino Date: Sat, 2 Nov 2024 12:04:23 +0900 Subject: [PATCH] Checkpoint --- .../WalletConnectRequestPermissionsConfirmDialog.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/gui/src/components/walletConnect/WalletConnectRequestPermissionsConfirmDialog.tsx b/packages/gui/src/components/walletConnect/WalletConnectRequestPermissionsConfirmDialog.tsx index 6f6f5113ef..97979b539c 100644 --- a/packages/gui/src/components/walletConnect/WalletConnectRequestPermissionsConfirmDialog.tsx +++ b/packages/gui/src/components/walletConnect/WalletConnectRequestPermissionsConfirmDialog.tsx @@ -47,9 +47,10 @@ export default function WalletConnectRequestPermissionsConfirmDialog( const p = params[i]; if (p.name === 'commands') { return (values.commands as string[]).map((cmd) => { - const cmdDescription = walletConnectCommands.find((item) => `chia_${item.command}` === cmd); + const cmdWithoutPrefix = cmd.replace('chia_', ''); + const cmdDescription = walletConnectCommands.find((item) => item.command === cmdWithoutPrefix); return { - command: cmdDescription?.command ?? cmd.replace('chia_', ''), + command: cmdDescription?.command ?? cmdWithoutPrefix, bypassConfirm: Boolean(cmdDescription?.bypassConfirm), }; });