Skip to content

Commit

Permalink
default state fix for localliveapp
Browse files Browse the repository at this point in the history
  • Loading branch information
Wozacosta committed May 13, 2024
1 parent 46420dc commit d356148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,5 @@ export function PlatformAppProviderWrapper({ children }: PlatformAppProviderWrap
}

function useLocalLiveAppDB() {
return useDB(
"app",
DISCOVER_STORE_KEY,
INITIAL_PLATFORM_STATE,
state => state.localLiveApp || INITIAL_PLATFORM_STATE.localLiveApp,
);
return useDB("app", DISCOVER_STORE_KEY, INITIAL_PLATFORM_STATE, state => state.localLiveApp);
}
2 changes: 1 addition & 1 deletion apps/ledger-live-mobile/src/PlatformAppProviderWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ function useLocalLiveAppDB() {
return useDB<DiscoverDB, DiscoverDB["localLiveApp"]>(
DISCOVER_STORE_KEY,
INITIAL_PLATFORM_STATE,
state => state.localLiveApp || INITIAL_PLATFORM_STATE.localLiveApp,
state => state.localLiveApp,
);
}

0 comments on commit d356148

Please sign in to comment.