diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-09 14:35:55 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-09 14:35:55 +0700 |
| commit | 8dd5502ca3ed4f2d74f74ea396b9424bd1390e5e (patch) | |
| tree | f39a67d705e99e4ccada3a0f71cfa5f72f439431 /src/core | |
| parent | ea7e2cf8f768c3d3202c282182de6355b3ee32ee (diff) | |
<iman> uptade code to avoid error
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/components/elements/Navbar/TopBanner.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/components/elements/Navbar/TopBanner.jsx b/src/core/components/elements/Navbar/TopBanner.jsx index 302db5c4..b035eea4 100644 --- a/src/core/components/elements/Navbar/TopBanner.jsx +++ b/src/core/components/elements/Navbar/TopBanner.jsx @@ -5,7 +5,7 @@ import SmoothRender from '~/components/ui/smooth-render'; import Link from '../Link/Link'; import { useEffect } from 'react'; -const TopBanner = ({ onLoad }) => { +const TopBanner = ({ onLoad = () => {} }) => { const topBanner = useQuery({ queryKey: 'topBanner', queryFn: async () => await odooApi('GET', '/api/v1/banner?type=top-banner'), |
