Skip to content

Commit

Permalink
fix(NPS): ajouter numéro de version et os (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangimds committed Dec 22, 2021
1 parent 0f9fe9e commit 3d9c6bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/NPS/NPS.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {colors} from '../../utils/colors';
import Matomo from '../matomo';
import logEvents from '../logEvents';
import localStorage from '../../utils/localStorage';
import pck from '../../../package.json';

// just to make sure nothing goes the bad way in production, debug is always false

Expand All @@ -36,6 +37,8 @@ const lookUpSupported = {
const formatText = ({useful, reco, feedback, userId, contact, supported}) =>
`
User: ${userId}
Version: ${pck.version}
OS: ${Platform.OS}
Comment pouvons-nous vous être encore plus utile: ${feedback}
Ce service vous a-t-il été utile: ${useful}
Quelle est la probabilité que vous recommandiez ce service à un ami ou un proche: ${reco}
Expand Down

0 comments on commit 3d9c6bd

Please sign in to comment.