Skip to content

Commit

Permalink
fix(proposal): add details_annualUsdSalary_a for default tier
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenijesavic committed Sep 26, 2023
1 parent d090afe commit 18a4bf4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/proposals/ProposalDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1464,10 +1464,14 @@ export default {
const tier = this.tiers.find(tier => tier.label === (this.proposal?.salaryband?.[0]?.name || DEFAULT_TIER))
// const archetype = this.archetypes.find(archetype => archetype.label === this.proposal?.salaryband?.[0]?.assignment?.[0]?.role?.[0]?.system_nodeLabel_s)

const annualUsdSalary = (tier.label === DEFAULT_TIER
? this?.proposal?.details_annualUsdSalary_a
: tier.value.annualAmount).split(' ')[0]

this.$store.commit('proposals/setRole', { value: this.proposal?.role[0] })
this.$store.commit('proposals/setTier', tier)

this.$store.commit('proposals/setAnnualUsdSalary', parseFloat(tier.value.annualAmount.split(' ')[0]))
this.$store.commit('proposals/setAnnualUsdSalary', annualUsdSalary)
this.$store.commit('proposals/setMinDeferred', tier?.value?.minDeferred || 0)
this.$store.commit('proposals/setMinCommitment', 0)

Expand Down

0 comments on commit 18a4bf4

Please sign in to comment.