Skip to content

Commit

Permalink
fix: Inconsistency in Flagship flag
Browse files Browse the repository at this point in the history
By convention, we use hyphen instead of underscore
  • Loading branch information
cballevre committed Oct 18, 2023
1 parent fc1e7d6 commit a77383f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cozy-client/src/models/utils.js
Expand Up @@ -30,13 +30,13 @@ export const getCreatedByApp = doc => get(doc, 'cozyMetadata.createdByApp')
*/
export const getFlagshipDownloadLink = lang => {
if (isAndroid()) {
const id = flag('flagship.playstore_id') || 'io.cozy.flagship.mobile'
const id = flag('flagship.playstore-id') || 'io.cozy.flagship.mobile'
return `https://play.google.com/store/apps/details?id=${id}&hl=${lang}`
}
if (isIOS()) {
const id = flag('flagship.appstore_id') || 'id1600636174'
const id = flag('flagship.appstore-id') || 'id1600636174'
return `https://apps.apple.com/${lang}/app/${id}`
}

return flag('flagship.download_link') || `https://cozy.io/${lang}/download`
return flag('flagship.download-link') || `https://cozy.io/${lang}/download`
}

0 comments on commit a77383f

Please sign in to comment.