Skip to content

Commit

Permalink
Only show raw json for sender view (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
grod220 authored May 10, 2024
1 parent 8b9a6ea commit 616c9a4
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { ViewTabs } from './view-tabs';
import { ApproveDeny } from '../approve-deny';
import { UserChoice } from '@penumbra-zone/types/user-choice';
import type { Jsonified } from '@penumbra-zone/types/jsonified';
import { TransactionViewTab } from './types';

export const TransactionApproval = () => {
const { authorizeRequest: authReqString, setChoice, sendResponse } = useStore(txApprovalSelector);
Expand Down Expand Up @@ -45,9 +46,11 @@ export const TransactionApproval = () => {

<TransactionViewComponent txv={selectedTransactionView} />

<div className='mt-8'>
<JsonViewer jsonObj={authorizeRequest.toJson() as Jsonified<AuthorizeRequest>} />
</div>
{selectedTransactionViewName === TransactionViewTab.SENDER && (
<div className='mt-8'>
<JsonViewer jsonObj={authorizeRequest.toJson() as Jsonified<AuthorizeRequest>} />
</div>
)}
</div>

<ApproveDeny approve={approve} deny={deny} wait={3} />
Expand Down

0 comments on commit 616c9a4

Please sign in to comment.