Refactor search history (#8260)
This commit is contained in:
@@ -112,7 +112,7 @@ export function SearchScreenShell({
|
||||
const newAccountHistory = [
|
||||
item.did,
|
||||
...accountHistory.filter(p => p !== item.did),
|
||||
].slice(0, 5)
|
||||
].slice(0, 10)
|
||||
setAccountHistory(newAccountHistory)
|
||||
},
|
||||
[accountHistory, setAccountHistory],
|
||||
|
||||
Reference in New Issue
Block a user