Repository navigation
Check for accounts during connect logic - #26
Conversation
|
Apologies was focused on another project the past few weeks. Will try and review this tomorrow. Thank you for your patience. |
|
Hi @Envoy-VC, I don't think WDYT? [1] microsoft/TypeScript#49169 |
Yes I checked strict mode doesn't include it by default. I think it would be better it it was checked or else anyone would have to disable type checking in the project. for example, but yes it not necessary. |
|
I believe there is another place with unchecked access which I will update. I'll update our tsconfig and fix that in another PR. Thanks for your work 🙏 |
This PR introduces a check for accounts[0] during connect logic for PaymentClient, which leads to typescript errors while building in strict mode.
This is because accounts is a array of
AccountDataand array indexing can lead to undefined typed value.