1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Fix version check

This commit is contained in:
xmflsct
2023-05-20 22:47:58 +02:00
parent 23a8e5cd19
commit 1375bc95cd
3 changed files with 3 additions and 5 deletions

View File

@ -34,7 +34,7 @@ const features: { feature: Features; version: number }[] = [
]
export const featureCheck = (feature: Features, v?: string): boolean =>
v
v || getAccountStorage.string('version')
? (features.find(f => f.feature === feature)?.version || 999) <=
parseFloat(v || getAccountStorage.string('version'))
: false