Skip to content

Commit 04e98e0

Browse files
committed
fix(website): map zero results
1 parent 5a74d8f commit 04e98e0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/twelve-swans-wait.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'website': patch
3+
---
4+
5+
Fixed the map when zero hosts are found.

apps/website/components/Map/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function Map({ hosts, stats }: Props) {
2929
const { gpu, settings } = useAppSettings()
3030

3131
const [activeHostPublicKey, setActiveHostPublicKey] = useState<string>(
32-
hosts[0].publicKey
32+
hosts[0]?.publicKey
3333
)
3434

3535
const activeHost = useMemo(

0 commit comments

Comments
 (0)