Skip to content

Commit

Permalink
fix: Show recommended nonce when nonce is 0, fix msgSummary layout (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan authored Sep 28, 2023
1 parent d1a0a56 commit a44252b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/safe-messages/MsgSummary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const MsgSummary = ({ msg }: { msg: SafeMessage }): ReactElement => {
const isConfirmed = msg.status === SafeMessageStatus.CONFIRMED

return (
<Box className={classNames(txSummaryCss.gridContainer, txSummaryCss.columnTemplateWithoutNonce)}>
<Box className={classNames(txSummaryCss.gridContainer, txSummaryCss.columnTemplate)}>
<Box gridArea="type" className={txSummaryCss.columnWrap}>
<MsgType msg={msg} />
</Box>
Expand Down
2 changes: 1 addition & 1 deletion src/components/tx/SignOrExecuteForm/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export const useRecommendedNonce = (): number | undefined => {

const recommendedNonce = await getRecommendedNonce(safe.chainId, safeAddress)

return recommendedNonce ? Math.max(safe.nonce, recommendedNonce) : undefined
return recommendedNonce !== undefined ? Math.max(safe.nonce, recommendedNonce) : undefined
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[safeAddress, safe.chainId, safe.txQueuedTag], // update when tx queue changes
Expand Down

0 comments on commit a44252b

Please sign in to comment.