question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in displaying dateOfBirth attribute in the client section for some clients.

See original GitHub issue

Description

In the Clients section, when you open some of the clients like Susan Wanjiru , test verify, Pauline Wambui Chege etc. the app throws ERROR TypeError: Cannot read property 'reverse' of undefined error in browser console as these clients don’t have their dateOfBirth stored in the database.

Steps to Reproduce

Open the Clients section in the Institution tab and then open the client Susan Wanjiru or test verify or Pauline Wambui Chege etc., then open the browser developer tools console using Control + Shift + I . You’ll see the error there.

Cause of Error

This line this.clientInfo.dateOfBirth = this.clientInfo.dateOfBirth.reverse().join('-'); in view-client.component.ts should have a check whether the property dateOfBirth exists or not.

Settings

  • Mifos X version: 0.0.0-dev
  • Browser used: Google Chrome

Screenshots, if any

client9

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
abhaychawlacommented, Jan 1, 2019

Part of https://github.com/openMF/web-app/issues/213. As specified in the wiki any kind of date should just be displayed for now without formatting: https://github.com/openMF/web-app/wiki/Date-and-Language till the implementation is finalized.

0reactions
karantakalkarcommented, Aug 8, 2020

Clients section has been revamped

Read more comments on GitHub >

github_iconTop Results From Across the Web

org.hibernate.hql.internal.ast.QuerySyntaxException: table is ...
Select c from Customer c this is fine query as Customer is you class name and we should write class name in the...
Read more >
User profile attributes in Azure Active Directory B2C
Learn about the user resource type attributes that are supported by the Azure AD B2C directory user profile. Find out about built-in ...
Read more >
Sabre Profiles Error Messages Guide
If any of these instances occur, a SOAP fault message displays with the following data: <faultcode>soap-env:Client.
Read more >
Customer Information Parameters - Conversions API
The customer information parameters are a set of user identifiers you share ... customer information parameters through the Meta Pixel, though some (e.g., ......
Read more >
Form Validation with PHP - SitePoint
If one or more fields are empty, the form will be displayed again. This time, however, the empty fields will be have the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found