0
0
Fork 0

Only show survey button if the link exists

This commit is contained in:
Oliver-Akins 2021-01-08 23:17:21 -07:00
parent 098a71dcd6
commit 980249939d
2 changed files with 12 additions and 2 deletions

View file

@ -17,7 +17,12 @@
<br>
Online Prototype Made By: Oliver Akins (Alkali Metal)
<br>
<a :href="$store.state.survey_link" target="_blank" rel="noopener">
<a
v-if="$store.state.survey_link"
:href="$store.state.survey_link"
target="_blank"
rel="noopener"
>
<button class="clickable">
Complete The Survey
</button>

View file

@ -4,7 +4,12 @@
{{ mostRecentQuestion }}
</div>
<div class="flex-center" v-else-if="gameOver">
<a :href="$store.state.survey_link" target="_blank" rel="noopener">
<a
v-if="$store.state.survery_link"
:href="$store.state.survey_link"
target="_blank"
rel="noopener"
>
<button class="clickable">
Complete The Survey
</button>