Hotfixes missing image in partner page attempt 2

This commit is contained in:
Moritz Kröger 2019-05-24 15:30:42 +02:00 committed by GitHub
parent eb9a0834ea
commit b832ccf180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@
getPartnerLogo (token) {
let name = token.toLowerCase().replace(/\s/g, '-')
// Hotfix, should be handled correctly.
if (name.includes('czech-republic')) {
name = name.split('-')[0]
if (name.includes('jef')) {
name = 'jef'
}
return require(`@/assets/${name}-logo.png`)