Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Sawtooth-tuna - Transfer bug? #11

Open
owenrh opened this issue Dec 12, 2017 · 0 comments
Open

Sawtooth-tuna - Transfer bug? #11

owenrh opened this issue Dec 12, 2017 · 0 comments

Comments

@owenrh
Copy link

owenrh commented Dec 12, 2017

Hi,

I'm just running through the edX Blockchain for Business - An Introduction to Hyperledger Technologies course. I'm hitting what appears to be a bug when attempting to perform a transfer an asset.

When I perform the transfer, the transfer fields reset but nothing appears in the Accept Tuna section. If I refresh the browser I get the following error in the console.

bundle.js:30428 Uncaught TypeError: Cannot read property 'public' of null at transfers.filter.transfer (bundle.js:30428) at Array.filter (<anonymous>) at getState (bundle.js:30428) at Object.$.get [as success] (bundle.js:30556) at fire (bundle.js:13363) at Object.fireWith [as resolveWith] (bundle.js:13493) at done (bundle.js:19318) at XMLHttpRequest.<anonymous> (bundle.js:19560)

this is the code in question

// Populate transfer list for selected user transfers.filter(transfer => transfer.owner === this.user.public) .forEach(transfer => addAction('#transferList', transfer.asset, 'Accept'))

This is in Chrome. Using the latest repo code. Thanks.

thingsinjars added a commit to thingsinjars/education that referenced this issue May 25, 2018
This solves issue hyperledger-archives#11. The error is thrown on load because the user is only set after the dropdown value has changed. This doesn't attempt to filter the transfers if the user hasn't been set.
thingsinjars added a commit to thingsinjars/education that referenced this issue May 25, 2018
This solves issue hyperledger-archives#11. The error is thrown on load because the user is only set after the dropdown value has changed. This doesn't attempt to filter the transfers if the user hasn't been set.

Signed-off-by: Simon Madine <simon@thingsinjars.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants