hippospace / aptos-wallet-adapter

Other
92 stars 95 forks source link

fix: TypeError when auto-locking Fewcha #118

Open unimu-cic opened 1 year ago

unimu-cic commented 1 year ago

Description

The adapter works fine when the user manually locks the Fewcha, but the accountResp will be undefined when Fewcha locks itself after Time Lock, and you can set the Time Lock to 1 minute for faster testing.

Screen Recoding:

Can jump to 1:10 to see the TypeError.

https://github.com/hippospace/aptos-wallet-adapter/assets/125171539/eb1125d8-01fa-4f23-9b6a-b9930ce9a52e

CodeSandbox Link: https://codesandbox.io/s/pedantic-torvalds-gw3z3f?file=/src/Page.tsx:365-385