hapramp / alpha-web

1Ramp Alpha Web App
https://alpha.1ramp.io/
19 stars 7 forks source link

Profile doesn't load as expected (@tobias-g) #76

Closed tobias-g1 closed 5 years ago

tobias-g1 commented 5 years ago

Expected behavior

A users profile should load, a user should then be able to navigate around that profile.

Actual Behaviour

When visiting the profile for @tobias-g (https://alpha.1ramp.io/@tobias-g) the profile loads initially, but then a while screen is shown.

Steps to reproduce

  1. Go to https://alpha.1ramp.io/@utopian-io
  2. Note that it loads successfully.
  3. Got to https://alpha.1ramp.io/@tobias-g
  4. Note that it initially loads, then shows a blank screen.

Error

The following error is shown upon click of the clear button when using the editor.

react-dom.production.min.js:164 

TypeError: Cannot read property 'length' of null
    at g (index.js:25)
    at beginWork (react-dom.production.min.js:132)
    at i (react-dom.production.min.js:161)
    at a (react-dom.production.min.js:161)
    at s (react-dom.production.min.js:162)
    at w (react-dom.production.min.js:169)
    at _ (react-dom.production.min.js:168)
    at p (react-dom.production.min.js:167)
    at d (react-dom.production.min.js:165)
    at Object.enqueueSetState (react-dom.production.min.js:108)
    at l.o.setState (react.production.min.js:13)
    at l.onStateChange (connectAdvanced.js:205)
    at Object.notify (Subscription.js:26)
    at e.notifyNestedSubs (Subscription.js:65)
    at l.onStateChange (connectAdvanced.js:202)
    at Object.notify (Subscription.js:26)

Environment

I also tested this on Firefox Quantum 57.0.4 (64-bit) and the same issue takes place.

Recording of Issue

The following issue can be seen in the view below:

https://www.youtube.com/watch?v=XqQBy4RSMZQ&feature=youtu.be

singhpratyush commented 5 years ago

Thanks for reporting. I am able to reproduce this issue - will work on a fix.