File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
src/client/src/pages/DataView360/View/components Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,7 @@ const customStyles = theme => ({
31
31
class volunteerActivity extends Component {
32
32
33
33
render ( ) {
34
- const { classes} = this . props ;
35
-
34
+ const { classes, volunteer} = this . props ;
36
35
return (
37
36
< React . Fragment >
38
37
< Container component = { Paper } style = { { "marginTop" : "1em" } } >
@@ -51,9 +50,14 @@ class volunteerActivity extends Component {
51
50
< TableBody >
52
51
{ this . props . volunteer && (
53
52
< TableRow >
54
- < TableCell > { moment ( this . props . volunteer . start_date ) . format ( "MM-DD-YYYY" ) } </ TableCell >
55
- < TableCell > { this . props . volunteer . life_hours . toFixed ( 2 ) } </ TableCell >
56
- < TableCell > { this . props . volunteer . ytd_hours . toFixed ( 2 ) } </ TableCell >
53
+ < TableCell > {
54
+ ( volunteer . start_date === "N/A" )
55
+ ? "N/A"
56
+ : moment ( volunteer . start_date ) . format ( "MM-DD-YYYY" )
57
+ }
58
+ </ TableCell >
59
+ < TableCell > { volunteer . life_hours . toFixed ( 2 ) } </ TableCell >
60
+ < TableCell > { volunteer . ytd_hours . toFixed ( 2 ) } </ TableCell >
57
61
</ TableRow >
58
62
) }
59
63
</ TableBody >
You can’t perform that action at this time.
0 commit comments