Skip to content

Commit

Permalink
fix: failed test and coderabbit
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnigs committed Sep 20, 2024
1 parent c568918 commit 7cf3e27
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ export const DelegationCheck = ({
const userType = application.externalData.getUserType?.data
const hasUserType = !!userType

console.log('UserType: ', userType)

if (hasUserType) {
setError(VALIDATOR, {
type: 'custom',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export const ElectionStatement = ({
const incomeLimit = getValueViaPath(answers, 'election.incomeLimit')

if (incomeLimit === GREATER) {
goToScreen && goToScreen('attachments.file')
goToScreen?.('attachments.file')
} else {
goToScreen && goToScreen('election')
goToScreen?.('election')
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
sectionColumn,
starterColumnStyle,
} from '../../components/css/overviewStyles.css'
import { CapitalNumberOverview } from '../../components/CApitalNumberOverview'
import { CapitalNumberOverview } from '../../components/CapitalNumberOverview'
import { AssetDebtEquityOverview } from '../../components/AssetDebtEquityOverview'
import { FileValueLine } from '../../components/FileValueLine'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
sectionColumn,
starterColumnStyle,
} from '../../components/css/overviewStyles.css'
import { CapitalNumberOverview } from '../../components/CApitalNumberOverview'
import { CapitalNumberOverview } from '../../components/CapitalNumberOverview'

export const PartyOverview = ({
application,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,4 @@ export const formatCurrency = (answer: string) =>

export const formatNumber = (num: number) => num.toLocaleString('de-DE')

export const checkIfNegative = (inputNumber: string) => {
if (Number(inputNumber) < 0) {
return false
} else {
return true
}
}
export const checkIfNegative = (inputNumber: string) => Number(inputNumber) >= 0

0 comments on commit 7cf3e27

Please sign in to comment.