Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix minor issues

ammarahm-eda20855779bd0
diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.js
index c062d5b14..8e4e2c404 100755
--- a/apps/mobile/src/views/Editor/index.js
+++ b/apps/mobile/src/views/Editor/index.js
@@ -388,13 +388,14 @@ const Editor = ({noMenu}) => {
const updateEditor = async () => {
title = note.title;
id = note.id;
-
- content = {...note.content};
saveCounter = 0;
InfoBarRef.current?.setDateCreated(note.dateCreated);
content.text = await db.notes.note(id).text();
- InfoBarRef.current?.setDateEdited(note.dateEdited, text.split(' ').length);
+ InfoBarRef.current?.setDateEdited(
+ note.dateEdited,
+ content.text.split(' ').length,
+ );
if (title !== null || title === '') {
post({
diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.js
index d57ecd9e0..8f70b8b6f 100755
--- a/apps/mobile/src/views/Home/index.js
+++ b/apps/mobile/src/views/Home/index.js
@@ -5,7 +5,7 @@ import SelectionHeader from '../../components/SelectionHeader';
import {useTracked} from '../../provider';
import {ACTIONS} from '../../provider/actions';
import {eSendEvent} from '../../services/eventManager';
-import {DDS} from '../../utils/utils';
+import {DDS, ToastEvent} from '../../utils/utils';
import {eScrollEvent, eOnLoadNote} from '../../services/events';
import {openEditorAnimation} from '../../utils/animations';
import {sideMenuRef} from '../../utils/refs';