diff --git a/src/routes/poll/+page.svelte b/src/routes/poll/+page.svelte index 3c4264b..dfdb0ad 100644 --- a/src/routes/poll/+page.svelte +++ b/src/routes/poll/+page.svelte @@ -249,7 +249,7 @@ {#await submitBallot()}
Submitting your vote...
{:then _} -
Your vote has been casted.
+
Thank you, your vote has been casted. You will not be able to vote again. You may now close this tab.
{:catch err}
An error occurred. Try again later. @@ -270,15 +270,14 @@ kind="text" on:click={() => { submitModal = false; - }}>Cancel{submitted || erred ? 'Close' : 'Cancel'} - {#if !erred} + {#if !erred ?? !submitted} Submit {/if}