Skip to content

Commit f008f08

Browse files
committed
Fix [version check logic] versionPlugin
1 parent 1dcc884 commit f008f08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export const versionPlugin = ({ version, name, action } = {}) => {
33
const currentVersion = version || 1;
44
const itemKey = name || 'application-store-version';
55
const localVersion = parseInt(localStorage.getItem(itemKey)) || 0;
6-
if (!localVersion || localVersion < currentVersion) {
6+
if (!localVersion || localVersion !== currentVersion) {
77
localStorage.clear();
88
localStorage.setItem(itemKey, currentVersion);
99

0 commit comments

Comments
 (0)