Fixes profile view not reloading on new username.
This commit is contained in:
parent
091d21b50f
commit
9ce1ad94c7
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ when defined(js):
|
||||||
if state.status != Http200:
|
if state.status != Http200:
|
||||||
return renderError("Couldn't retrieve profile.")
|
return renderError("Couldn't retrieve profile.")
|
||||||
|
|
||||||
if state.profile.isNone:
|
if state.profile.isNone or state.profile.get().user.name != username:
|
||||||
let uri = makeUri("profile.json", ("username", username))
|
let uri = makeUri("profile.json", ("username", username))
|
||||||
ajaxGet(uri, @[], (s: int, r: kstring) => onProfile(s, r, state))
|
ajaxGet(uri, @[], (s: int, r: kstring) => onProfile(s, r, state))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue