Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Kta 100 bug country missing #35

Merged
merged 3 commits into from
Dec 1, 2022
Merged

Conversation

sandoche
Copy link
Contributor

@sandoche sandoche commented Dec 1, 2022

No description provided.

@sandoche
Copy link
Contributor Author

sandoche commented Dec 1, 2022

@ryancwalsh @PierreLeGuen I'll merge this since it passes the tests and fix a critical bug

@sandoche sandoche merged commit 0e303e1 into develop Dec 1, 2022
@sandoche sandoche deleted the KTA-100-bug-country-missing branch December 1, 2022 11:30
@@ -50,11 +51,14 @@ const onfido = getOnfido();
export default async function handler(req: NextApiRequest, res: NextApiResponse<ApplicantTokenPair | unknown>) {
try {
const ipAddress = req.headers['x-real-ip'] ?? req.connection.remoteAddress;
const countryOfResidence = getCountryCodeFromTimezone(req.body.timezone);
console.log('countryOfResidence', countryOfResidence);
Copy link
Member

Choose a reason for hiding this comment

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

Are console logs printed in prod? If yes, console logs should be removed or disabled in prod.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This code is run by the backend so it's a console log displayed in the backend for logging purpose.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not printed to the browser.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants