Remove logs

This commit is contained in:
Justin Edmund 2022-12-25 02:53:13 -08:00
parent 406eb32800
commit a3246efd4a
3 changed files with 0 additions and 22 deletions

View file

@ -107,13 +107,6 @@ const AXSelect = (props: Props) => {
}, [props.currentSkills, setSecondaryAxModifier])
useEffect(() => {
console.log(
primaryAxModifier,
primaryAxValue,
secondaryAxModifier,
secondaryAxValue
)
let noErrors = false
if (errors.axValue1 === '' && errors.axValue2 === '') {
@ -132,13 +125,6 @@ const AXSelect = (props: Props) => {
secondaryAxValue > 0
)
noErrors = true
else
console.log(
primaryAxModifier >= 0,
primaryAxValue > 0,
secondaryAxModifier >= 0,
secondaryAxValue > 0
)
}
props.sendValidity(noErrors)

View file

@ -106,12 +106,8 @@ const WeaponGrid = (props: Props) => {
.catch((error) => {
const code = error.response.status
const data = error.response.data
console.log(error.response)
console.log(data, code)
if (code === 422) {
if (data.code === 'incompatible_weapon_for_position') {
console.log('Here')
setShowIncompatibleAlert(true)
}
}
@ -339,7 +335,6 @@ const WeaponGrid = (props: Props) => {
}
const incompatibleAlert = () => {
console.log(t('alert.incompatible_weapon'))
return showIncompatibleAlert ? (
<Alert
open={showIncompatibleAlert}

View file

@ -10,7 +10,6 @@ export type GroupedWeaponKeys = {
}
export function groupWeaponKeys(keys: WeaponKey[]) {
console.log(keys)
const numGroups = Math.max.apply(
Math,
keys.map((key) => key.group)
@ -28,7 +27,5 @@ export function groupWeaponKeys(keys: WeaponKey[]) {
groupedKeys[weaponKeyGroups[i].slug] = keys.filter((key) => key.group == i)
}
console.log(groupedKeys)
return groupedKeys
}