jurteam / platform

Jur Beta Platform
https://beta.jur.io
0 stars 0 forks source link

FIX Advocate bio does not show refresh/on-load #341

Closed tyagishuchi1 closed 4 years ago

tyagishuchi1 commented 4 years ago

The bio does not show when the advocate page is loaded or refreshed. However, it shows after navigating from some other page.

Expected Behavior

The bio should be shown on page load.

Steps to Reproduce

Environment: Temp

  1. Go to http://167.71.2.142/profile/my-advocacy with an advocate address directly
  2. Or just refresh the page
ashishjur commented 4 years ago

I'll address this issue after #335 is completed.

ashishjur commented 4 years ago

Apparently this was a separate issue. #335 wouldn't have made any effect.

Cause: checks for the logged-in user were wrong. There was no initial value for bio.

I've set initial value for bio and used isPublic prop to determine the visibility of components.