Remove logs
This commit is contained in:
parent
406eb32800
commit
a3246efd4a
3 changed files with 0 additions and 22 deletions
|
|
@ -107,13 +107,6 @@ const AXSelect = (props: Props) => {
|
||||||
}, [props.currentSkills, setSecondaryAxModifier])
|
}, [props.currentSkills, setSecondaryAxModifier])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log(
|
|
||||||
primaryAxModifier,
|
|
||||||
primaryAxValue,
|
|
||||||
secondaryAxModifier,
|
|
||||||
secondaryAxValue
|
|
||||||
)
|
|
||||||
|
|
||||||
let noErrors = false
|
let noErrors = false
|
||||||
|
|
||||||
if (errors.axValue1 === '' && errors.axValue2 === '') {
|
if (errors.axValue1 === '' && errors.axValue2 === '') {
|
||||||
|
|
@ -132,13 +125,6 @@ const AXSelect = (props: Props) => {
|
||||||
secondaryAxValue > 0
|
secondaryAxValue > 0
|
||||||
)
|
)
|
||||||
noErrors = true
|
noErrors = true
|
||||||
else
|
|
||||||
console.log(
|
|
||||||
primaryAxModifier >= 0,
|
|
||||||
primaryAxValue > 0,
|
|
||||||
secondaryAxModifier >= 0,
|
|
||||||
secondaryAxValue > 0
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
props.sendValidity(noErrors)
|
props.sendValidity(noErrors)
|
||||||
|
|
|
||||||
|
|
@ -106,12 +106,8 @@ const WeaponGrid = (props: Props) => {
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
const code = error.response.status
|
const code = error.response.status
|
||||||
const data = error.response.data
|
const data = error.response.data
|
||||||
console.log(error.response)
|
|
||||||
|
|
||||||
console.log(data, code)
|
|
||||||
if (code === 422) {
|
if (code === 422) {
|
||||||
if (data.code === 'incompatible_weapon_for_position') {
|
if (data.code === 'incompatible_weapon_for_position') {
|
||||||
console.log('Here')
|
|
||||||
setShowIncompatibleAlert(true)
|
setShowIncompatibleAlert(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -339,7 +335,6 @@ const WeaponGrid = (props: Props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const incompatibleAlert = () => {
|
const incompatibleAlert = () => {
|
||||||
console.log(t('alert.incompatible_weapon'))
|
|
||||||
return showIncompatibleAlert ? (
|
return showIncompatibleAlert ? (
|
||||||
<Alert
|
<Alert
|
||||||
open={showIncompatibleAlert}
|
open={showIncompatibleAlert}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ export type GroupedWeaponKeys = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function groupWeaponKeys(keys: WeaponKey[]) {
|
export function groupWeaponKeys(keys: WeaponKey[]) {
|
||||||
console.log(keys)
|
|
||||||
const numGroups = Math.max.apply(
|
const numGroups = Math.max.apply(
|
||||||
Math,
|
Math,
|
||||||
keys.map((key) => key.group)
|
keys.map((key) => key.group)
|
||||||
|
|
@ -28,7 +27,5 @@ export function groupWeaponKeys(keys: WeaponKey[]) {
|
||||||
groupedKeys[weaponKeyGroups[i].slug] = keys.filter((key) => key.group == i)
|
groupedKeys[weaponKeyGroups[i].slug] = keys.filter((key) => key.group == i)
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(groupedKeys)
|
|
||||||
|
|
||||||
return groupedKeys
|
return groupedKeys
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue