Skip to content

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

fix toast not showing after hidden

ammarahm-edee7e161ee4df
diff --git a/apps/mobile/src/components/Toast/index.js b/apps/mobile/src/components/Toast/index.js
index af1babc08..cfb37e9fa 100644
--- a/apps/mobile/src/components/Toast/index.js
+++ b/apps/mobile/src/components/Toast/index.js
@@ -68,7 +68,6 @@ export const Toast = ({context = 'global'}) => {
};
const hideToastFunc = (data) => {
- console.log(toastMessages.length);
if (toastMessages.length > 1) {
toastMessages.shift();
@@ -90,6 +89,7 @@ export const Toast = ({context = 'global'}) => {
duration: 200,
easing: Easing.inOut(Easing.ease),
}).start(() => {
+ toastMessages.shift();
setData({});
});
}