@bigbinary/neeto-commons-frontend 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import axios from 'axios';
2
- import { values, curry, toPairs, pipe, omit, isEmpty, isNotNil } from 'ramda';
2
+ import { values, curry, toPairs, pipe, omit, isEmpty } from 'ramda';
3
3
  import i18next from 'i18next';
4
4
  import { getRandomInt, preprocessForSerialization } from '@bigbinary/neeto-cist';
5
5
  import { Toastr } from '@bigbinary/neetoui';
@@ -2654,10 +2654,10 @@ var getFromLocalStorage = function getFromLocalStorage(key) {
2654
2654
  }
2655
2655
  };
2656
2656
  var setToLocalStorage = function setToLocalStorage(key, value) {
2657
- if (isNotNil(value)) localStorage.setItem(key, JSON.stringify(value));else localStorage.removeItem(key);
2657
+ return localStorage.setItem(key, JSON.stringify(value));
2658
2658
  };
2659
2659
  var removeFromLocalStorage = function removeFromLocalStorage(key) {
2660
- localStorage.removeItem(key);
2660
+ return localStorage.removeItem(key);
2661
2661
  };
2662
2662
 
2663
2663
  dayjs.extend(relativeTime);