Skip to content

Commit

Permalink
Always you smoke
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Feb 3, 2020
1 parent 0c7261e commit ffbfa3b
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions App/components/CigaretteBlock/CigaretteBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,7 @@ function getSwearWord(cigaretteCount: number): string {
}

export function CigaretteBlock(props: CigaretteBlockProps): React.ReactElement {
const {
cigarettes,
frequency,
isGps,
style,
displayFrequency,
...rest
} = props;
const { cigarettes, frequency, style, displayFrequency, ...rest } = props;

// Decide on a swear word. The effect says that the swear word only changes
// when the cigarettes count changes.
Expand All @@ -70,10 +63,7 @@ export function CigaretteBlock(props: CigaretteBlockProps): React.ReactElement {

const text = i18n.t('home_smoked_cigarette_title', {
swearWord,
presentPast:
isGps && frequency === 'daily'
? i18n.t('home_common_you_smoke')
: i18n.t('home_common_you_smoked'),
presentPast: i18n.t('home_common_you_smoke'),
singularPlural:
cigarettesRounded === 1
? i18n.t('home_common_cigarette').toLowerCase()
Expand Down

0 comments on commit ffbfa3b

Please sign in to comment.