import StorageAccess from './StorageAccess';

let DataStorage = {

    MemoryData: null,
    
    getActivities: () => {
        if (!DataStorage.MemoryData) {
            DataStorage.MemoryData = StorageAccess.loadActivities();
        }

        return DataStorage.MemoryData;
    }, 

    addActivity: (activity) => {
        let data = DataStorage.getActivities();
        data.push(activity);
        saveActivities();
    },

    saveActivities: () => {
        StorageAccess.saveActivities(DataStorage.getActivities());
    }
};

export default DataStorage;
@@ -395,24 +395,36 @@
 y);%0A        
+DataStorage.
 saveActiviti

fix storage