fix favoriting
This commit is contained in:
@@ -82,10 +82,10 @@ export function createBackgrounds(appSettings: Settings): BackgroundsState {
|
||||
}
|
||||
|
||||
setFavroiteBackgrounds((prev) => {
|
||||
if (prev.find((background) => background.id === currentRandomBackground()!.id)) {
|
||||
if (prev.find((background) => background.id === currentBackground()!.id)) {
|
||||
return prev;
|
||||
}
|
||||
return [...prev, currentRandomBackground()!];
|
||||
return [...prev, currentBackground()!];
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user