mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
clear profileBackground if there is no image
This commit is contained in:
parent
50d9b9f022
commit
191023ac38
@ -44,6 +44,12 @@ export function useUserDetails() {
|
||||
"userDetails",
|
||||
JSON.stringify({ ...userDetails, profileBackground })
|
||||
);
|
||||
} else {
|
||||
dispatch(setProfileBackground(null));
|
||||
window.localStorage.setItem(
|
||||
"userDetails",
|
||||
JSON.stringify({ ...userDetails })
|
||||
);
|
||||
}
|
||||
},
|
||||
[dispatch]
|
||||
|
Loading…
Reference in New Issue
Block a user