Skip to content

Commit 8417252

Browse files
committed
fix: remove optional chaining
1 parent 2a9473f commit 8417252

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

firestore/useDocument.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ const useDocumentInternal = <T = DocumentData>(
9090
listener();
9191
};
9292
} else {
93-
const get = getDocFnFromGetOptions(options?.getOptions);
93+
const get = getDocFnFromGetOptions(
94+
options ? options.getOptions : undefined
95+
);
9496

9597
get(ref.current).then(setValue).catch(setError);
9698
}

0 commit comments

Comments
 (0)