make bridge-in to be stored in history in any case
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
parent
e42f5db893
commit
ce6e316feb
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-dao-interface",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.8.2",
|
"version": "0.8.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@ -82,7 +82,7 @@ export const LocalStorageProvider = ({ children }) => {
|
|||||||
const tryStoreInHistory = async (chainId, address, target, txHash, name) => {
|
const tryStoreInHistory = async (chainId, address, target, txHash, name) => {
|
||||||
const historyKey = getStorageKey(chainId, address, HISTORY_PREFIX);
|
const historyKey = getStorageKey(chainId, address, HISTORY_PREFIX);
|
||||||
const storedHistoryTypes = localStorage.getItem(historyKey);
|
const storedHistoryTypes = localStorage.getItem(historyKey);
|
||||||
const historyTypes = storedHistoryTypes ? JSON.parse(storedHistoryTypes) : [];
|
const historyTypes = storedHistoryTypes ? JSON.parse(storedHistoryTypes) : DEFAULT_HISTORY_TYPES;
|
||||||
if (!historyTypes.includes(target)) return;
|
if (!historyTypes.includes(target)) return;
|
||||||
|
|
||||||
const key = getStorageKey(chainId, address, target);
|
const key = getStorageKey(chainId, address, target);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user