Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(settings): use consistent storage key
  • Loading branch information
atticusofsparta committed Jul 23, 2025
commit d713079c827b7fc17bb12b579c4e48bde0ae6c7f
2 changes: 1 addition & 1 deletion src/hooks/useSyncSettings/useSyncSettings.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useGlobalState, useWalletState } from '@src/state';
import { useEffect, useRef } from 'react';

const SETTINGS_STORAGE_KEY = 'arns-app-settings';
export const SETTINGS_STORAGE_KEY = 'arns-app-settings';

interface NetworkSettings {
gateway: string;
Expand Down
3 changes: 1 addition & 2 deletions src/state/contexts/GlobalState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
WayfinderProvider,
} from '@ar.io/wayfinder-react';
import { connect } from '@permaweb/aoconnect';
import { SETTINGS_STORAGE_KEY } from '@src/hooks';
import eventEmitter from '@src/utils/events';
import React, {
Dispatch,
Expand All @@ -35,8 +36,6 @@ import {
} from '../../utils/constants';
import type { GlobalAction } from '../reducers/GlobalReducer';

const SETTINGS_STORAGE_KEY = 'arNS_settings';

// Function to load settings from localStorage
function loadSettingsFromStorage(): {
gateway: string;
Expand Down