1
0
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:
Matthias Kretschmann 2020-10-29 00:40:46 +01:00
parent a95a35bd7b
commit 86ca66d2cb
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -72,7 +72,7 @@ function UserPreferencesProvider({
}, [])
function addBookmark(didToAdd: string): void {
const newPinned = bookmarks.concat(didToAdd)
const newPinned = [didToAdd].concat(bookmarks)
setBookmarks(newPinned)
}