Skip to content

Commit

Permalink
fix: Check execute checkbox if execution is the only option (#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan authored Jul 5, 2023
1 parent 00b9949 commit 0c7276b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/tx/SignOrExecuteForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ const SignOrExecuteForm = ({
<DecodedTx tx={tx} txId={txId} />

{canExecute && (
<ExecuteCheckbox checked={shouldExecute} onChange={handleExecuteCheckboxChange} disabled={onlyExecute} />
<ExecuteCheckbox
checked={shouldExecute || onlyExecute}
onChange={handleExecuteCheckboxChange}
disabled={onlyExecute}
/>
)}

<AdvancedParams
Expand Down

0 comments on commit 0c7276b

Please sign in to comment.