fix state issues

This commit is contained in:
ammarahm-ed
2022-03-09 17:05:34 +05:00
parent 7cf7dbaa65
commit 763de6db41
5 changed files with 103 additions and 96 deletions

View File

@@ -299,7 +299,6 @@ export const useActions = ({ close = () => {}, item }) => {
try {
if (isPinnedToMenu) {
await db.settings.unpin(item.id);
return;
} else {
if (item.type === 'topic') {
await db.settings.pin(item.type, {