Skip to content

Commit

Permalink
Checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaMineJP committed Nov 2, 2024
1 parent 65688cd commit ca06ff5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
});
Expand Down

0 comments on commit ca06ff5

Please sign in to comment.