mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
clear profileBackground if there is no image
This commit is contained in:
parent
50d9b9f022
commit
191023ac38
1 changed files with 6 additions and 0 deletions
|
@ -44,6 +44,12 @@ export function useUserDetails() {
|
||||||
"userDetails",
|
"userDetails",
|
||||||
JSON.stringify({ ...userDetails, profileBackground })
|
JSON.stringify({ ...userDetails, profileBackground })
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
dispatch(setProfileBackground(null));
|
||||||
|
window.localStorage.setItem(
|
||||||
|
"userDetails",
|
||||||
|
JSON.stringify({ ...userDetails })
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[dispatch]
|
[dispatch]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue