Skip to content

Commit f768f4d

Browse files
author
Mia Godet
authored
Update use.md (#481)
correction to code sample
1 parent 1b592e0 commit f768f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/use.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ function CatImage() {
404404
const storage = useStorage();
405405
const catRef = ref(storage, 'cats/newspaper');
406406

407-
const { status, data: imageURL } = useStorageDownloadURL(ref(storage, storagePath));
407+
const { status, data: imageURL } = useStorageDownloadURL(catRef);
408408

409409
if (status === 'loading') {
410410
return <span>loading...</span>;

0 commit comments

Comments
 (0)