mirror of
https://github.com/exzork/gc-tools.git
synced 2024-11-22 07:08:12 +00:00
fix undefined
This commit is contained in:
parent
aa094d665c
commit
36ec24f023
@ -86,10 +86,15 @@ export default function Artifacts() {
|
||||
};
|
||||
|
||||
const getPercent = (affix:IReliquaryAffix)=>{
|
||||
try{
|
||||
if (affix.PropType.indexOf("PERCENT") !== -1 || affix.PropType.indexOf("CRITICAL") !== -1 || affix.PropType.indexOf("EFFICIENCY") !== -1 || affix.PropType.indexOf("HURT") !== -1) {
|
||||
return parseFloat(String(affix.PropValue*100)).toPrecision(3) + "%";
|
||||
}
|
||||
return parseInt(String(affix.PropValue));
|
||||
}catch (e) {
|
||||
console.log(e);
|
||||
return parseInt(String(affix.PropValue));
|
||||
}
|
||||
};
|
||||
|
||||
const handleGeneratedArtifact = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user