Skip to content

Commit

Permalink
feat: remove lucky draw options
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Jul 24, 2023
1 parent f397631 commit 837b99a
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions pages/thanks.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
<script setup lang="ts">
import Message from 'primevue/message'
import Skeleton from 'primevue/skeleton'
import InputMask from 'primevue/inputmask'
import Card from 'primevue/card'
import Badge from 'primevue/badge'
import Button from 'primevue/button'
import InputText from 'primevue/inputtext'
import ProgressBar from 'primevue/progressbar'
import { useToast } from 'primevue/usetoast'
import { TRPCClientError } from '@trpc/client'
Expand Down Expand Up @@ -37,13 +32,15 @@ const formData = reactive({
})
const eligibleForLuckyDraw = computed(() => {

Check warning on line 34 in pages/thanks.vue

View workflow job for this annotation

GitHub Actions / ci

'eligibleForLuckyDraw' is assigned a value but never used. Allowed unused vars must match /^_/u
if (responsesPending.value || responsesError.value)
return false
// Lucky draw is over
if (responses.value.length > 1)
return true
if (responses.value.find(x => x.survey.workshop))
return true
// if (responsesPending.value || responsesError.value)
// return false
// if (responses.value.length > 1)
// return true
// if (responses.value.find(x => x.survey.workshop))
// return true
return false
})
Expand Down Expand Up @@ -110,7 +107,7 @@ async function create() {
<NuxtImg preload fit="inside" width="135" height="135" alt="World Skills ASEAN" densities="x1 x2 x3" src="/images/logo.webp" />

<Message severity="warn">
If you win a prize in the lucky draw, you will be informed through <strong>Telegram or Phone Call</strong>.
The lucky draw has ended. If you have won a prize in the lucky draw, you will be informed through <strong>Telegram or Phone Call</strong>.
<br>
Please keep a lookout for this number: <strong>+65 88** *511</strong>.
</Message>
Expand All @@ -132,7 +129,8 @@ async function create() {

<Skeleton v-if="responsesPending" height="300px" />

<template
<!-- Lucky draw is over! -->
<!-- <template
v-else-if="eligibleForLuckyDraw"
>
<Card v-if="formData.showDetails">
Expand Down Expand Up @@ -212,7 +210,7 @@ async function create() {
</div>
</div>
</template>
</Card>
</Card> -->

<section>
<h2 text-2xl font-semibold>
Expand Down

0 comments on commit 837b99a

Please sign in to comment.