Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zerts committed Jul 25, 2024
1 parent 3ab5b56 commit 8deb19b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/components/SignMessageButton/SignMessageButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ export const SignMessageButton = React.forwardRef(function SignMessageButton(
const isError =
personalSignMutation.isError || signTypedData_v4Mutation.isError;

// we have small delay after using holdable button
// there is a small delay after using a holdable button
// button should be disabled after successful sign to prevent a duplicating call
const disabled = isLoading || isSuccess;

const title = buttonTitle || 'Sign';

return isDeviceAccount(wallet) ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ export const SignTransactionButton = React.forwardRef(

const isLoading = isLoadingProp || sendTxMutation.isLoading;
const isSending = sendTxMutation.isLoading;

// there is a small delay after using a holdable button
// button should be disabled after successful sign to prevent a duplicating call
const disabled = isLoading || sendTxMutation.isSuccess || disabledAttr;
const title = buttonTitle || 'Confirm';

Expand Down

0 comments on commit 8deb19b

Please sign in to comment.