Skip to content

Commit da649e5

Browse files
committed
Simplet POAP (status fix)
1 parent df332b0 commit da649e5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/components/parts/poap/Poap.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="card-light relative">
1818
<div class="flex gap-4 items-center mb-4">
1919
<h5>Your PoAP</h5>
20-
<LazyPoapStatus v-if="poapStatus !== null" :key="poapStatus" :status="poapStatus" />
20+
<PoapStats :status="poapStatus" />
2121
</div>
2222

2323
<div class="flex flex-col lg:flex-row items-center justify-between gap-y-4 gap-x-8">

frontend/components/parts/poap/PoapStatus.vue renamed to frontend/components/parts/poap/Stats.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<Tag :type="getPoapStatus(status)">
2+
<Tag v-if="status !== null" :type="getPoapStatus(status)">
33
<span class="first-letter:uppercase leading-normal">
44
<slot>
55
<template v-if="status === PoapStatus.WAITING">Waiting</template>
@@ -14,7 +14,7 @@
1414
import { PoapStatus } from '~/lib/values/general.values';
1515
1616
defineProps({
17-
status: { type: Number, default: PoapStatus.IN_PROGRESS },
17+
status: { type: Number, default: null },
1818
});
1919
2020
/** Poap status */

0 commit comments

Comments
 (0)