aleph-im / aleph-account

Aleph.im's Account management dApp
https://account.aleph.im/
2 stars 3 forks source link

[FIXED] Unable to download source code of a program #86

Closed leirbag95 closed 1 year ago

leirbag95 commented 1 year ago

Issue (#84)

When user wants to download the source code of a program that he has already deployed it does not work

Error

TypeError: Cannot read properties of undefined (reading 'item_hash')

The idea is to make sure that the hash item exists.

Solution The problem was due to the use of a variable declaration with var. So we had a scoped problem, for this reason it is better to declare this iteration variable in a loop with let.

In fact var => function scoped let or const=> block scoped

github-actions[bot] commented 1 year ago

Deployed (not pinned) on https://ipfs-2.aleph.im/ipfs/QmQNVmsFC8vjimm5ttspKAK1RGUDnNpT8KhG5SZCmyDkJt

github-actions[bot] commented 1 year ago

Deployed (not pinned) on https://ipfs-2.aleph.im/ipfs/QmSQ4qbhfJtQYunE8zzt9aDRgHLcTyeRNrZ3cmatpf4hns