- fixed displaying delega; - fixed switching companies; - added toast for profile and company profile; - fixed registration 'deby/allow all' func;
15 lines
346 B
JavaScript
15 lines
346 B
JavaScript
const zustandXOpts = {
|
|
devtools: {
|
|
enabled: process.env.NODE_ENV !== 'production'
|
|
},
|
|
persist: {
|
|
enabled: true,
|
|
partialize: (state) => ({
|
|
//userData: state.userData,
|
|
token: state.token,
|
|
chosenCompanyId: state.chosenCompanyId,
|
|
}),
|
|
}
|
|
}
|
|
|
|
export default zustandXOpts; |