Fix terminal icon not loading for console registered users

Affects issues:
- #2260
This commit is contained in:
Aurora Lahtela 2022-05-21 09:38:26 +03:00
parent b52f257f3c
commit 6c5c9ce913
2 changed files with 3 additions and 1 deletions

View File

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -1,6 +1,8 @@
import {createContext, useCallback, useContext, useEffect, useState} from "react";
import {fetchPlanMetadata} from "../service/metadataService";
import terminal from '../Terminal-icon.png'
const MetadataContext = createContext({});
export const MetadataContextProvider = ({children}) => {
@ -17,7 +19,7 @@ export const MetadataContextProvider = ({children}) => {
const getPlayerHeadImageUrl = useCallback((name, uuid) => {
if (!uuid && name === 'console') {
return '../../Terminal-icon.png';
return terminal;
}
/* eslint-disable no-template-curly-in-string */