mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-23 00:21:43 +01:00
Fix terminal icon not loading for console registered users
Affects issues: - #2260
This commit is contained in:
parent
b52f257f3c
commit
6c5c9ce913
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
@ -1,6 +1,8 @@
|
|||||||
import {createContext, useCallback, useContext, useEffect, useState} from "react";
|
import {createContext, useCallback, useContext, useEffect, useState} from "react";
|
||||||
import {fetchPlanMetadata} from "../service/metadataService";
|
import {fetchPlanMetadata} from "../service/metadataService";
|
||||||
|
|
||||||
|
import terminal from '../Terminal-icon.png'
|
||||||
|
|
||||||
const MetadataContext = createContext({});
|
const MetadataContext = createContext({});
|
||||||
|
|
||||||
export const MetadataContextProvider = ({children}) => {
|
export const MetadataContextProvider = ({children}) => {
|
||||||
@ -17,7 +19,7 @@ export const MetadataContextProvider = ({children}) => {
|
|||||||
|
|
||||||
const getPlayerHeadImageUrl = useCallback((name, uuid) => {
|
const getPlayerHeadImageUrl = useCallback((name, uuid) => {
|
||||||
if (!uuid && name === 'console') {
|
if (!uuid && name === 'console') {
|
||||||
return '../../Terminal-icon.png';
|
return terminal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-disable no-template-curly-in-string */
|
/* eslint-disable no-template-curly-in-string */
|
||||||
|
Loading…
Reference in New Issue
Block a user