make local storage logic to be context
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
5dc0bb3a1b
commit
68545b40f1
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ghost-dao-interface",
|
||||
"private": true,
|
||||
"version": "0.7.21",
|
||||
"version": "0.7.22",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@ -15,7 +15,7 @@ export const LocalStorageProvider = ({ children }) => {
|
||||
}
|
||||
|
||||
const setStorageValue = (chainId, address, target, value) => {
|
||||
const key = getStorageKey(prefix, chainId, address, target);
|
||||
const key = getStorageKey(chainId, address, target);
|
||||
localStorage.setItem(key, JSON.stringify(value));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user