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

More permissive logging in

This commit is contained in:
xmflsct
2023-05-16 21:51:03 +02:00
parent 8aeeb1d806
commit a8243adf51
2 changed files with 8 additions and 5 deletions

View File

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