|
|
|
@ -4,22 +4,22 @@ export default function migrateMonitorToEnum(persistedState) {
|
|
|
|
|
const addMovie = get(persistedState, 'addMovie.defaults.monitor');
|
|
|
|
|
const discoverMovie = get(persistedState, 'discoverMovie.defaults.monitor');
|
|
|
|
|
|
|
|
|
|
if (addMovie != null) {
|
|
|
|
|
if (addMovie === true) {
|
|
|
|
|
if (addMovie) {
|
|
|
|
|
if (addMovie === 'true') {
|
|
|
|
|
persistedState.addMovie.defaults.monitor = 'movieOnly';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (addMovie === false) {
|
|
|
|
|
if (addMovie === 'false') {
|
|
|
|
|
persistedState.addMovie.defaults.monitor = 'none';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (discoverMovie != null) {
|
|
|
|
|
if (discoverMovie === true) {
|
|
|
|
|
if (discoverMovie) {
|
|
|
|
|
if (discoverMovie === 'true') {
|
|
|
|
|
persistedState.discoverMovie.defaults.monitor = 'movieOnly';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (discoverMovie === false) {
|
|
|
|
|
if (discoverMovie === 'false') {
|
|
|
|
|
persistedState.discoverMovie.defaults.monitor = 'none';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|