Skip to content

Commit

Permalink
don't overwrite localstorage lists when fetch throws (#2723)
Browse files Browse the repository at this point in the history
  • Loading branch information
JFrankfurt committed Nov 2, 2021
1 parent 714953b commit 9561cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/lists/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default createReducer(initialState, (builder) =>
}

state.byUrl[url] = {
current: null,
current: state.byUrl[url].current ? state.byUrl[url].current : null,
pendingUpdate: null,
loadingRequestId: null,
error: errorMessage,
Expand Down

2 comments on commit 9561cf5

@vercel
Copy link

@vercel vercel bot commented on 9561cf5 Nov 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

widgets – ./

widgets-uniswap.vercel.app
widgets-git-main-uniswap.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 9561cf5 Nov 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

interface – ./

interface-uniswap.vercel.app
interface-git-main-uniswap.vercel.app

Please sign in to comment.