bug fix analyzer when coming from builds

This commit is contained in:
Sendou
2020-06-19 15:51:10 +03:00
parent adf2981def
commit 0b737bf9c6

View File

@@ -22,7 +22,10 @@ const BuildAnalyzerPage: React.FC<RouteComponentProps> = () => {
const { themeColor, grayWithShade } = useContext(MyThemeContext)
const location = useLocation()
const [build, setBuild] = useState<Partial<Build>>(getBuildFromUrl())
const [otherBuild, setOtherBuild] = useState<Partial<Build>>(defaultBuild)
const [otherBuild, setOtherBuild] = useState<Partial<Build>>({
...defaultBuild,
weapon: getBuildFromUrl().weapon,
})
const [showOther, setShowOther] = useState(false)
const [showNotActualProgress, setShowNotActualProgress] = useState(false)
const [startChartsAtZero, setStartChartsAtZero] = useState(true)