fix(explorer): tx viewer dropdown did not correctly represent state (#2780)

This commit is contained in:
Edd 2023-01-30 18:17:47 +00:00 committed by GitHub
parent 1861852852
commit 06f44b67de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ export const TxDataView = ({ txData, blockData }: TxDataViewProps) => {
<Select
placeholder="View as..."
onChange={(v) => setShowTxData(v.target.value as ShowTxDataType)}
value={'JSON'}
value={showTxData}
>
<option value={'JSON'}>JSON</option>
<option value={'base64'}>Base64</option>