Skip to content

Commit

Permalink
more tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
tfhuhtal authored and sutigit committed Jan 24, 2025
1 parent 187aae9 commit d805f4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion client/components/V1/DataComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const CustomCard = ({ type, data }: CustomCardProps) => {
const DataComponent = () => {
const keyData = useFetchKeyData()

if (!keyData || keyData === 0 || !keyData[0].data) return <div>Loading...</div>
if (!keyData || keyData.length === 0 || !keyData[0].data) return <div>Loading...</div>

const dataMap = keyData[0].data

Expand Down
1 change: 0 additions & 1 deletion client/components/V1/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import useFetchKeyData from '../../hooks/useFetchKeyData'
import DataComponent from './DataComponent'

import TextFieldComponent from './Generic/TextFieldComponent'
Expand Down

0 comments on commit d805f4b

Please sign in to comment.