chore : match text for both public and admin
This commit is contained in:
@@ -30,9 +30,11 @@ import { type EditorBase, hasIssuePrefix, parseEditorDraft, ConditionControls, r
|
||||
function WeaponDamageInput({ value, onFocus, onBlur, ...props }: ComponentProps<typeof Input> & { value: string }) {
|
||||
const [focused, setFocused] = useState(false);
|
||||
const numeric = Number(value);
|
||||
const displayValue = !value.trim() || !Number.isFinite(numeric)
|
||||
? value
|
||||
: weaponComparisonPercent(value) ?? "";
|
||||
const displayValue = !value.trim()
|
||||
? "-"
|
||||
: !Number.isFinite(numeric)
|
||||
? value
|
||||
: weaponComparisonPercent(value) ?? "-";
|
||||
|
||||
return <Input
|
||||
{...props}
|
||||
|
||||
Reference in New Issue
Block a user