Skip to content

Commit

Permalink
fix: handle renamed field in demo store (#1390)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakehobbs authored Feb 26, 2025
1 parent c75826e commit 008812b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/ui-demo/src/state/store.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,14 @@ export const createDemoStore = (initialConfig: Config = DEFAULT_CONFIG) => {
...config
}) => config,
skipHydration: true,
version: 2,
version: 3,
})
);
};

function createInitialState(
initialConfig: Config = DEFAULT_CONFIG
): StateCreator<DemoState> {
function createInitialState(initialConfig?: Config): StateCreator<DemoState> {
return (set, get) => ({
...DEFAULT_CONFIG,
...initialConfig,
nftTransferred: false,
setNftTransferred: (transferred) => {
Expand Down

0 comments on commit 008812b

Please sign in to comment.