1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-24 21:39:36 +02:00

Fixed custom icons not updating

This commit is contained in:
unknown 2021-07-28 11:36:48 +02:00
parent f93659b661
commit 1fbe0746a4
6 changed files with 76 additions and 15 deletions

View file

@ -21,7 +21,7 @@ const AppCard = (props: ComponentProps): JSX.Element => {
className={classes.AppCard}
>
<div className={classes.AppCardIcon}>
{(/.(jpeg|jpg|png)$/).test(props.app.icon)
{(/.(jpeg|jpg|png)$/i).test(props.app.icon)
? <img
src={`/uploads/${props.app.icon}`}
alt={`${props.app.name} icon`}