mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-15 05:41:51 +08: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 {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 */
|
||||
|
Loading…
Reference in New Issue
Block a user