add_cell(row, 'td', p.hockey_assists);
add_cell(row, 'td', p.num_throws);
add_cell(row, 'td', p.throwaways);
- add_cell(row, 'td', throw_ok.toFixed(0) + '%');
+ if (p.num_throws > 0) {
+ add_cell(row, 'td', throw_ok.toFixed(0) + '%');
+ } else {
+ add_cell(row, 'td', 'N/A');
+ }
add_cell(row, 'td', p.catches);
add_cell(row, 'td', p.drops);
- add_cell(row, 'td', catch_ok.toFixed(0) + '%');
+ if (p.catches + p.drops > 0) {
+ add_cell(row, 'td', catch_ok.toFixed(0) + '%');
+ } else {
+ add_cell(row, 'td', 'N/A');
+ }
add_cell(row, 'td', '+' + p.offensive_soft_plus);
add_cell(row, 'td', '-' + p.offensive_soft_minus);
rows.push(row);