mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 19:54:44 -07:00
fix for AUR info display when pkgrel == 1
This commit is contained in:
parent
7cef3ce90d
commit
f117c14869
1 changed files with 3 additions and 2 deletions
|
|
@ -46,8 +46,9 @@ export const AboutTab = () => {
|
|||
value: versionInfo.aurPackageVersion
|
||||
? (() => {
|
||||
const pkgrel = versionInfo.aurPackageVersion.split('-')[1];
|
||||
return pkgrel && pkgrel !== '1'
|
||||
? `${versionInfo.appVersion} (AUR r${pkgrel})`
|
||||
|
||||
return pkgrel
|
||||
? `${versionInfo.appVersion} (AUR${pkgrel !== '1' ? ' r' + pkgrel : ''})`
|
||||
: versionInfo.appVersion;
|
||||
})()
|
||||
: versionInfo.appVersion,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue