Format
This commit is contained in:
@ -90,12 +90,11 @@ export default {
|
||||
try {
|
||||
const res = await fetch(`${this.protocol}${import.meta.env.VITE_BACKEND_DOMAIN}/api/discover`)
|
||||
const rawData = await res.json()
|
||||
if (rawData.status === "ok") {
|
||||
if (rawData.status === 'ok') {
|
||||
this.data = rawData.data
|
||||
} else {
|
||||
this.data = { status: 'error' }
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
this.data = { status: 'error' }
|
||||
@ -164,7 +163,9 @@ export default {
|
||||
|
||||
<div class="p-2">
|
||||
<div>
|
||||
<p class="font-bold text-white text-xl sm:text-base md:text-xl">{{ category.displayName }}</p>
|
||||
<p class="font-bold text-white text-xl sm:text-base md:text-xl">
|
||||
{{ category.displayName }}
|
||||
</p>
|
||||
<p class="text-sm text-white">{{ abbreviate(category.viewers) }} viewers</p>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user