diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..74d3646
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,20 @@
+# Changelog
+
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [1.0.1] - 2021-05-02
+
+### Added
+
+- Dark mode support
+
+### Fixed
+
+- Don't reload data on wrong password
+
+## [1.0.0] - 2021-05-02
+
+Initial release
diff --git a/client/src/routes/note/[id].svelte b/client/src/routes/note/[id].svelte
index 02d4b82..734f7c8 100644
--- a/client/src/routes/note/[id].svelte
+++ b/client/src/routes/note/[id].svelte
@@ -40,7 +40,7 @@
})
async function show() {
- const data = await get(id)
+ const data = note || (await get(id)) // Don't get the content twice on wrong password.
if (needPassword) {
try {
const key = await getKeyFromString(password)
@@ -74,7 +74,11 @@
{#if error}
-
wrong password. could not decipher.
+
+ wrong password. could not decipher.
+
+ note already destroyed. try again without reloading the page.
+