1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-06-08 02:24:51 +02:00

fix changelog version saving bug

This commit is contained in:
Kushagra Gour 2024-04-29 15:03:29 +05:30
parent d838bb672d
commit 6093614bbb

View File

@ -1181,7 +1181,7 @@ export default class App extends Component {
notificationsBtnClickHandler() { notificationsBtnClickHandler() {
this.setState({ isNotificationsModalOpen: true }); this.setState({ isNotificationsModalOpen: true });
if (this.state.isNotificationsModalOpen && !this.hasSeenNotifications) { if (!this.state.isNotificationsModalOpen && !this.hasSeenNotifications) {
this.hasSeenNotifications = true; this.hasSeenNotifications = true;
this.setState({ hasUnseenChangelog: false }); this.setState({ hasUnseenChangelog: false });
window.db.setUserLastSeenVersion(version); window.db.setUserLastSeenVersion(version);