mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
CODEBASE: Remove unused type of parameter of Favor component (#1874)
This commit is contained in:
@@ -9,7 +9,7 @@ const useStyles = makeStyles()((theme: Theme) => ({
|
||||
},
|
||||
}));
|
||||
|
||||
export function Favor({ favor }: { favor: number | string }): React.ReactElement {
|
||||
export function Favor({ favor }: { favor: number }): React.ReactElement {
|
||||
const { classes } = useStyles();
|
||||
return <span className={classes.favor}>{typeof favor === "number" ? formatFavor(favor) : favor}</span>;
|
||||
return <span className={classes.favor}>{formatFavor(favor)}</span>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user