Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix outcomes,diagnosis,phenotype ages #3819

Merged
merged 1 commit into from
Oct 5, 2023
Merged

🐛 Fix outcomes,diagnosis,phenotype ages #3819

merged 1 commit into from
Oct 5, 2023

Conversation

evans-g-crsj
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Oct 5, 2023

Deploy Preview for portal-qa-next-kidsfirstdrc ready!

Name Link
🔨 Latest commit e3d9f4f
🔍 Latest deploy log https://app.netlify.com/sites/portal-qa-next-kidsfirstdrc/deploys/651ed899d649680008fa421d
😎 Deploy Preview https://deploy-preview-3819--portal-qa-next-kidsfirstdrc.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Oct 5, 2023

Deploy Preview for portal-pre-prod-kidsfirstdrc ready!

Name Link
🔨 Latest commit e3d9f4f
🔍 Latest deploy log https://app.netlify.com/sites/portal-pre-prod-kidsfirstdrc/deploys/651ed89986a74a0008f8d181
😎 Deploy Preview https://deploy-preview-3819--portal-pre-prod-kidsfirstdrc.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions
Copy link

github-actions bot commented Oct 5, 2023

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 100% 0/0
🟢 Branches 100% 0/0
🟢 Functions 100% 0/0
🟢 Lines 100% 0/0

Test suite run success

0 tests passing in 0 suite.

Report generated by 🧪jest coverage report action from e3d9f4f

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Déplacé pour une visibilité plus grande à travers le projet

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Déplacé pour une visibilité plus grande à travers le projet

@@ -35,3 +35,5 @@ export const toKebabCase = (str: string) => {
const match: string[] = (str && str.match(KEBAB_REGEX)) || [];
return match.map((x: string) => x.toLowerCase()).join('-');
};

export const isNumber = (n: unknown): boolean => typeof n === 'number';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pourquoi cette methode ? on ne peut pas utiliser isNaN() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je pense que typeof est plus safe dans le cas qui nous intéresse, j'ai tenté avec isNaN et j'ai eu des bizzareries

.filter((x) => isNumber(x));
return outcomeAges.length > 0
? outcomeAges.map((age: number, index: number) => (
<AgeCell key={`${index}-${age}`} ageInDays={age} />
Copy link
Collaborator

@AltefrohneGaelle AltefrohneGaelle Oct 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comme dans AgeCell c'est un fragment, s'il y a plusieurs ages je ne suis pas sur que ça ira à la ligne ... il n'y aura pas d'espace entre les valeurs non ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bon point, je n'avais qu un seul élément à tester. je recorrigerai si besoin avec un exemple précis.

@evans-g-crsj evans-g-crsj merged commit e0259c3 into 2.0 Oct 5, 2023
@evans-g-crsj evans-g-crsj deleted the fix-ages branch October 5, 2023 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants