Skip to content

Commit

Permalink
fix: remove duplicate key warning error
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Apr 12, 2024
1 parent 8dc03a6 commit cf69f1c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/app/features/container/container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ export function Container() {
return navigate(RouteUrls.SendCryptoAssetForm.replace(':symbol', 'stx'));
case RouteUrls.SendBtcConfirmation:
return navigate(RouteUrls.SendCryptoAssetForm.replace(':symbol', 'btc'));
case RouteUrls.RpcSignBip322Message:
// console.log('Pete ');
return null;
default:
return navigate(-1);
}
Expand Down
6 changes: 6 additions & 0 deletions src/app/features/ledger/hooks/use-ledger-navigate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ export function useLedgerNavigate() {
},

cancelLedgerAction() {
// >> X in the dialog calls this same action but it doesn't know where the previous page is
// can propose removing this X in the ledger dialog as it doesn't do anything anyway???
// most of the time it's greyed out until you reject
// TODO - test what happens for Approve

console.log('pete', location.state);
return navigate('..', { relative: 'path', replace: true, state: { ...location.state } });
},

Expand Down
4 changes: 2 additions & 2 deletions src/app/features/message-signer/message-preview-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export function MessagePreviewBox({ message, hash }: MessageBoxProps) {
py="space.05"
overflowX="auto"
>
{message.split(/\r?\n/).map(line => (
<styled.span key={line} textStyle="label.01">
{message.split(/\r?\n/).map((line, index) => (
<styled.span key={`${line}_${index}`} textStyle="label.01">
{line}
</styled.span>
))}
Expand Down

0 comments on commit cf69f1c

Please sign in to comment.