mg-library 1.0.279 → 1.0.280
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/functions.js +5 -3
- package/package.json +1 -1
package/functions.js
CHANGED
|
@@ -175,13 +175,15 @@ export function getTimeForExposition(date) {
|
|
|
175
175
|
export async function writeToLocalStorage(key, value) {
|
|
176
176
|
try {
|
|
177
177
|
await AsyncStorage.setItem(key,value);
|
|
178
|
-
} catch (
|
|
178
|
+
} catch (error) {
|
|
179
|
+
console.log(error);
|
|
179
180
|
}
|
|
180
181
|
}
|
|
181
182
|
|
|
182
183
|
export async function readFromLocalStorage(key) {ç
|
|
183
184
|
try {
|
|
184
185
|
return await AsyncStorage.getItem(key);
|
|
185
|
-
} catch (
|
|
186
|
+
} catch (error) {
|
|
187
|
+
console.log(error);
|
|
186
188
|
}
|
|
187
|
-
}
|
|
189
|
+
}
|