Skip to content

Commit 61bc7dc

Browse files
committed
refactor: improve shop data extraction in StorePage component for better error handling
1 parent 2de6ae8 commit 61bc7dc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

dev-dist/sw.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev-dist/sw.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pages/StorePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import ErrorMessage from '@/components/ui/error-message';
1010

1111
const StorePage: React.FC = () => {
1212
const { id } = useParams();
13-
const { data: shop , isLoading, error } = useGetShopQuery(id);
13+
const { data: { data: shop } = {}, isLoading, error } = useGetShopQuery(id);
1414

1515
return (
1616
<ErrorBoundary>

0 commit comments

Comments
 (0)