Skip to content

Commit

Permalink
✨ Set encrypted journal content in hidden input
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernardstanislas committed Mar 28, 2023
1 parent 4748890 commit 1ac104d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<script lang="ts">
import { journal } from '$lib/stores/journal';
import { journal, encryptedJournal } from '$lib/stores/journal';
import KeyPair from '../lib/key-pair.svelte';
$: encryptedJournal = $journal.length;
</script>

<h1>750 words</h1>
Expand All @@ -12,6 +10,6 @@
Today's journal
<textarea data-testid="journal" bind:value={$journal} />
</label>
<input name="encrypted_journal" hidden value={encryptedJournal} />
<input name="encrypted_journal" hidden value={$encryptedJournal.value} />
<button type="submit">Submit</button>
</form>

1 comment on commit 1ac104d

@vercel
Copy link

@vercel vercel bot commented on 1ac104d Mar 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.