fix: type errors and warnings (#81)

This commit is contained in:
Bogdan Ciuca authored and GitHub committed 2023-03-17 08:44:52 +01:00
1 parent a957421136
commit 1c0b7d098b
1 file changed
+2 -2
+2 -2
View File
@@ -1,12 +1,12 @@
<script setup lang="ts">
const { data } = await useFetch('/api/pageview')
const time = useTimeAgo(computed(() => data.value!.startAt))
const time = useTimeAgo(computed(() => data.value?.startAt as number))
</script>
<template>
<div text-gray:80>
<span font-500 text-gray>{{ data!.pageview }}</span>
<span font-500 text-gray>{{ data?.pageview }}</span>
page views since
<span text-gray>{{ time }}</span>
</div>