Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SignTransactionSheet not disabling button on authorization #6242

Merged
merged 12 commits into from
Dec 5, 2024

Conversation

walmat
Copy link
Contributor

@walmat walmat commented Oct 28, 2024

Fixes APP-1969

What changed (plus any additional context for devs)

Disables sign transaction button once the user prompts for authentication and enables again afterward

Screen recordings / screenshots

n/a

What to test

happy paths for message signing, txn signing, etc.

src/components/DappBrowser/BrowserTab.tsx Outdated Show resolved Hide resolved
src/hooks/useConfirmTransaction.ts Outdated Show resolved Hide resolved
src/hooks/useSubmitTransaction.ts Outdated Show resolved Hide resolved
src/hooks/useSubmitTransaction.ts Outdated Show resolved Hide resolved
@@ -2908,6 +2908,7 @@
"buttons": {
"cancel": "Cancel",
"confirm": "􀎽 Confirm",
"confirming": "Confirming",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want a different copy here?

src/screens/SignTransactionSheet.tsx Outdated Show resolved Hide resolved
@@ -20,11 +20,10 @@ type BalanceCheckParams = {
};

export const useHasEnoughBalance = ({ isMessageRequest, walletBalance, chainId, selectedGasFee, req }: BalanceCheckParams) => {
const [isBalanceEnough, setIsBalanceEnough] = useState<boolean>();
const [isBalanceEnough, setIsBalanceEnough] = useState<boolean>(isMessageRequest);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

immediately set to true if we're signing a message.

@walmat walmat marked this pull request as ready for review November 25, 2024 21:08
@walmat walmat changed the title [TTS]: Improve SignTransactionSheet CTA timing Fix SignTransactionSheet not disabling button on authorization Nov 26, 2024
@brunobar79
Copy link
Member

Launch in simulator or device for 5f60ceb

@walmat walmat merged commit b161963 into develop Dec 5, 2024
7 of 8 checks passed
@walmat walmat deleted the @matthew/APP-1969 branch December 5, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants