mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-15 01:34:57 +01:00
add bookmark to beginning of array instead of end
This commit is contained in:
parent
a95a35bd7b
commit
86ca66d2cb
@ -72,7 +72,7 @@ function UserPreferencesProvider({
|
|||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
function addBookmark(didToAdd: string): void {
|
function addBookmark(didToAdd: string): void {
|
||||||
const newPinned = bookmarks.concat(didToAdd)
|
const newPinned = [didToAdd].concat(bookmarks)
|
||||||
setBookmarks(newPinned)
|
setBookmarks(newPinned)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user