mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-14 17:24:51 +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 {
|
||||
const newPinned = bookmarks.concat(didToAdd)
|
||||
const newPinned = [didToAdd].concat(bookmarks)
|
||||
setBookmarks(newPinned)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user