Skip to content

Expo app: fixing adding signer#1695

Closed
panosinthezone wants to merge 1 commit intowallets-v1from
panos/fix-adding-signer
Closed

Expo app: fixing adding signer#1695
panosinthezone wants to merge 1 commit intowallets-v1from
panos/fix-adding-signer

Conversation

@panosinthezone
Copy link
Contributor

Description

Fix the calling of add signer

Test plan

We are still throwing in createDeviceSigner

Package updates

@panosinthezone panosinthezone self-assigned this Mar 20, 2026
@changeset-bot
Copy link

changeset-bot bot commented Mar 20, 2026

⚠️ No Changeset found

Latest commit: 0f2a823

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Mar 20, 2026

Prompt To Fix All With AI
This is a comment left during a code review.
Path: apps/wallets/smart-wallet/expo/components/headless-signing.tsx
Line: 54-56

Comment:
**Errors silently swallowed in `initWallet`**

The `catch` block in `initWallet` only calls `console.error`, but doesn't update the UI error state (`setUiError`) or show an `Alert` to the user. This is inconsistent with how `handleAction` works, and means the new validation error thrown at lines 45–48 will never be surfaced to the user — it will only appear in the console.

Consider refactoring `initWallet` to delegate to `handleAction` by extracting the core logic into the passed callback. That way `setUiError` and `Alert.alert` are triggered on failure, consistent with how `handleSendOtpEmail` and `handleVerifyOtpInput` work.

How can I resolve this? If you propose a fix, please make it concise.

Last reviewed commit: "adding signer withou..."

Comment on lines 54 to 56
} catch (error) {
console.error("Error initializing wallet:", error);
} finally {
Copy link
Contributor

Choose a reason for hiding this comment

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

P2 Errors silently swallowed in initWallet

The catch block in initWallet only calls console.error, but doesn't update the UI error state (setUiError) or show an Alert to the user. This is inconsistent with how handleAction works, and means the new validation error thrown at lines 45–48 will never be surfaced to the user — it will only appear in the console.

Consider refactoring initWallet to delegate to handleAction by extracting the core logic into the passed callback. That way setUiError and Alert.alert are triggered on failure, consistent with how handleSendOtpEmail and handleVerifyOtpInput work.

Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/wallets/smart-wallet/expo/components/headless-signing.tsx
Line: 54-56

Comment:
**Errors silently swallowed in `initWallet`**

The `catch` block in `initWallet` only calls `console.error`, but doesn't update the UI error state (`setUiError`) or show an `Alert` to the user. This is inconsistent with how `handleAction` works, and means the new validation error thrown at lines 45–48 will never be surfaced to the user — it will only appear in the console.

Consider refactoring `initWallet` to delegate to `handleAction` by extracting the core logic into the passed callback. That way `setUiError` and `Alert.alert` are triggered on failure, consistent with how `handleSendOtpEmail` and `handleVerifyOtpInput` work.

How can I resolve this? If you propose a fix, please make it concise.

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.

2 participants