I am a little bit stumped on completing this without my solution looking hacky. Any recommendations? Is this easier to do in the reducer or should I keep this strictly in the action?
Surely this is easier than what I am attempting.
const initialState = {
unlockWebsite: {
hidden: false,
state: 'accepted',
completedCount: 60,
completedIds: ['priceYourHome', 'websiteInformation'],
totalTasks: 6,
},
prepareHome: {
hidden: true,
state: 'default',
completedCount: 0,
completedIds: [],
totalTasks: 6,
},
findingBuyers: {
hidden: true,
state: 'default',
completedCount: 0,
completedIds: [],
totalTasks: 6,
},
negotiateOffers: {
hidden: true,
state: 'default',
completedCount: 0,
completedIds: [],
totalTasks: 6,
},
closeHome: {
hidden: true,
state: 'default',
completedCount: 0,
completedIds: [],
totalTasks: 6,
},
};