Skip to content

Commit 52883a3

Browse files
committed
Correct example in documentation
1 parent 0f4b322 commit 52883a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ const DatabaseList = () => {
5151
<p>
5252
{error && <strong>Error: {error}</strong>}
5353
{loading && <span>List: Loading...</span>}
54-
{!loading && value && (
54+
{!loading && snapshots && (
5555
<React.Fragment>
5656
<span>
5757
List:{' '}
58-
{value.map(v => (
58+
{snapshots.map((v) => (
5959
<React.Fragment key={v.key}>{v.val()}, </React.Fragment>
6060
))}
6161
</span>

0 commit comments

Comments
 (0)