Clear state when not found
cgen-98e6572cb73d450cb9686dd5a7fff683
This commit is contained in:
parent
6cf0485648
commit
b756171b8f
1 changed files with 4 additions and 0 deletions
|
|
@ -136,6 +136,10 @@ const ProfilePassport = () => {
|
||||||
|
|
||||||
if (!resolvedProfile || !resolvedId) {
|
if (!resolvedProfile || !resolvedId) {
|
||||||
if (!cancelled) {
|
if (!cancelled) {
|
||||||
|
setProfile(null);
|
||||||
|
setAchievements([]);
|
||||||
|
setInterests([]);
|
||||||
|
setProjects([]);
|
||||||
setNotFound(true);
|
setNotFound(true);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue