mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-28 01:06:49 +08:00
fix: number check
This commit is contained in:
@@ -396,7 +396,7 @@ class Property {
|
||||
localStorage.setItem(key, JSON.stringify(merged))
|
||||
return merged
|
||||
}
|
||||
if (Number.isNumber(cloud)) {
|
||||
if (typeof cloud === 'number') {
|
||||
const merged = Math.max(cloud, local)
|
||||
localStorage.setItem(key, JSON.stringify(merged))
|
||||
return merged
|
||||
|
||||
Reference in New Issue
Block a user