Skip to content

Commit e5dcd80

Browse files
committed
refactor(App): add null guard
1 parent 2e7b2aa commit e5dcd80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const App = () => {
2222
useEffect(() => {
2323
return ref.onSnapshot((querySnapshot) => {
2424
const list = [];
25-
querySnapshot.forEach((doc) => {
25+
querySnapshot?.forEach((doc) => {
2626
const { title, complete } = doc.data();
2727
list.push({
2828
id: doc.id,

0 commit comments

Comments
 (0)