Commit 68aca768 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix

parent 2f501aee
......@@ -17,9 +17,13 @@
let content = '';
$: if (show) {
content = memory.content;
setContent();
}
const setContent = () => {
content = memory.content;
};
const submitHandler = async () => {
loading = true;
......@@ -32,6 +36,7 @@
if (res) {
console.log(res);
toast.success('Memory updated successfully');
dispatch('save');
show = false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment