MetaMask / MetaMask/metamask-mobile

TypeError: o.default.setStringExpire is not a function. (In 'o.default.setStringExpire(t)', 'o.default.setStringExpire' is undefined)

Open
#17,751 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

Sentry Issue: [METAMASK-MOBILE-3XBJ](https://metamask.sentry.io/issues/6737937299/?referrer=github_integration)

```
TypeError: o.default.setStringExpire is not a function. (In 'o.default.setStringExpire(t)', 'o.default.setStringExpire' is undefined)
at _setStringExpire (app/core/ClipboardManager.js:18:25)
at ClipboardManager.setStringExpire (app/core/ClipboardManager.js:15:24)
at _ref7 (app/components/Views/RevealPrivateCredential/RevealPrivateCredential.tsx:338:28)
at copyPrivateCredentialToClipboard (app/components/Views/RevealPrivateCredential/RevealPrivateCredential.tsx:320:41)
at .{children#3}.onPress (app/components/Views/RevealPrivateCredential/RevealPrivateCredential.tsx:461:17)
...
(26 additional frame(s) were not displayed)
```

Contributor guide

Open the contributing guide

Research direction

Start with app/core/ClipboardManager.js, then trace the calls from copyPrivateCredentialToClipboard in app/components/Views/RevealPrivateCredential/RevealPrivateCredential.tsx. Reproduce the private-credential copy flow and investigate why setStringExpire is unavailable. Done means this flow no longer raises the reported TypeError and clipboard expiration still behaves as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.