Skip to content

Commit

Permalink
wrap nostr issue popup in timeout (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
KKA11010 committed Nov 22, 2023
1 parent c5e1707 commit e43fd47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"blind-signatures",
"lightning-network"
],
"version": "0.1.1",
"version": "0.1.2",
"license": "AGPL-3.0-only",
"bugs": {
"url": "https://github.com/cashubtc/eNuts/issues"
Expand Down
12 changes: 7 additions & 5 deletions src/screens/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,13 @@ export default function Dashboard({ navigation, route }: TDashboardPageProps) {
store.get(STORE_KEYS.nostrReseted),
])
setHasMint(userHasMints)
l({ nutPub, seenNostrIssue })
setModal(prev => ({
...prev,
resetNostr: isStr(nutPub) && nutPub.length > 0 && seenNostrIssue !== '1'
}))
const t = setTimeout(() => {
setModal(prev => ({
...prev,
resetNostr: isStr(nutPub) && nutPub.length > 0 && seenNostrIssue !== '1'
}))
clearTimeout(t)
}, 1000)
})()
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
Expand Down

0 comments on commit e43fd47

Please sign in to comment.