Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Nov 5, 2024
1 parent 0596a1a commit 1e8724a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nextjs/components/NetworksDropdown/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,13 @@ export const chainToOption = (chain: Chain): Options => ({
const STORED_CHAINS_STORAGE_KEY = "storedChains";

export const getStoredChainsFromLocalStorage = (): Chain[] => {
return []; // Prevent error in https://github.com/oasisprotocol/abi-playground/blob/faa6ca4e86a2248672b3e4155ad8b4aa52da4fa9/packages/nextjs/services/store/store.ts#L47 on load
/*
Prevent error in https://github.com/oasisprotocol/abi-playground/blob/faa6ca4e86a2248672b3e4155ad8b4aa52da4fa9/packages/nextjs/services/store/store.ts#L47 on load
if (typeof window !== "undefined") {
const storedChains = localStorage.getItem(STORED_CHAINS_STORAGE_KEY);
return storedChains ? JSON.parse(storedChains) : [];
}
*/
return [];
};

Expand Down

0 comments on commit 1e8724a

Please sign in to comment.