Skip to content

Commit

Permalink
fix: wrong method referenced in validated input warning (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
range-of-motion committed Nov 24, 2021
1 parent 18e5977 commit a3e9537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AsyncStorage.native.js
Expand Up @@ -59,7 +59,7 @@ function checkValidInput(usedKey: string, value: any) {
if (isValuePassed && typeof value !== 'string') {
if (value == null) {
throw new Error(
`[AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .remove method instead.\nPassed value: ${value}\nPassed key: ${usedKey}\n`,
`[AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .removeItem method instead.\nPassed value: ${value}\nPassed key: ${usedKey}\n`,
);
} else {
console.warn(
Expand Down

0 comments on commit a3e9537

Please sign in to comment.