Skip to content

Commit 3decd40

Browse files
authored
fix(logic): Fix bug where deleteValue function was removing the wrong item from NativeLocalStorage. (facebook#4404)
1 parent 167776c commit 3decd40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/turbo-native-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function App(): React.JSX.Element {
194194
}
195195
196196
function deleteValue() {
197-
NativeLocalStorage?.removeItem(editingValue ?? EMPTY);
197+
NativeLocalStorage?.removeItem('myKey');
198198
setValue('');
199199
}
200200

0 commit comments

Comments
 (0)