Skip to content

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

fix new note event called multiple times

ammarahm-ed36552979b0f6
diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.js
index da189b452..f6c8afcbc 100755
--- a/apps/mobile/src/views/Home/index.js
+++ b/apps/mobile/src/views/Home/index.js
@@ -85,7 +85,6 @@ export const Home = ({navigation}) => {
const _onPressBottomButton = React.useCallback(async () => {
if (!DDS.isTab) {
- eSendEvent(eOnLoadNote, {type: 'new'});
tabBarRef.current?.goToPage(1);
} else {
eSendEvent(eOnLoadNote, {type: 'new'});