add negation to isFinite
This commit is contained in:
		| @@ -1318,7 +1318,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total = 0 | ||||
|       total_selesai = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(total_selesai / total) | ||||
|       options.totalValue = !isFinite(total_selesai / total) | ||||
|         ? 0 | ||||
|         : total_selesai == 0 | ||||
|           ? 0 | ||||
| @@ -1331,7 +1331,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total = 0 | ||||
|       total_inproses = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(total_inproses / total) | ||||
|       options.totalValue = !isFinite(total_inproses / total) | ||||
|         ? 0 | ||||
|         : total_inproses == 0 | ||||
|           ? 0 | ||||
| @@ -1385,7 +1385,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       count_durasi_response = 0 | ||||
|       total_durasi_response = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(total_durasi_response / count_durasi_response) | ||||
|       options.totalValue = !isFinite(total_durasi_response / count_durasi_response) | ||||
|         ? 0 | ||||
|         : total_durasi_response == 0 | ||||
|           ? 0 | ||||
| @@ -1414,7 +1414,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       count_durasi_recovery = 0 | ||||
|       total_durasi_recovery = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(total_durasi_recovery / count_durasi_recovery) | ||||
|       options.totalValue = !isFinite(total_durasi_recovery / count_durasi_recovery) | ||||
|         ? 0 | ||||
|         : total_durasi_recovery == 0 | ||||
|           ? 0 | ||||
|   | ||||
| @@ -784,7 +784,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total = 0 | ||||
|       total_selesai = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(total_selesai / total) | ||||
|       options.totalValue = !isFinite(total_selesai / total) | ||||
|         ? 0 | ||||
|         : total_selesai == 0 | ||||
|           ? 0 | ||||
| @@ -797,7 +797,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total = 0 | ||||
|       total_inproses = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(total_inproses / total) | ||||
|       options.totalValue = !isFinite(total_inproses / total) | ||||
|         ? 0 | ||||
|         : total_inproses == 0 | ||||
|           ? 0 | ||||
| @@ -826,7 +826,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total_durasi_response = 0 | ||||
|       count_durasi_response = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(count_durasi_response / total_durasi_response) | ||||
|       options.totalValue = !isFinite(count_durasi_response / total_durasi_response) | ||||
|         ? 0 | ||||
|         : count_durasi_response == 0 | ||||
|           ? 0 | ||||
| @@ -855,7 +855,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       count_durasi_recovery = 0 | ||||
|       total_durasi_recovery = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery) | ||||
|       options.totalValue = !isFinite(count_durasi_recovery / total_durasi_recovery) | ||||
|         ? 0 | ||||
|         : count_durasi_recovery == 0 | ||||
|           ? 0 | ||||
|   | ||||
| @@ -1050,7 +1050,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total = 0 | ||||
|       total_selesai = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(total_selesai / total) | ||||
|       options.totalValue = !isFinite(total_selesai / total) | ||||
|         ? 0 | ||||
|         : total_selesai == 0 | ||||
|           ? 0 | ||||
| @@ -1063,7 +1063,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total = 0 | ||||
|       total_inproses = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(total_inproses / total) | ||||
|       options.totalValue = !isFinite(total_inproses / total) | ||||
|         ? 0 | ||||
|         : total_inproses == 0 | ||||
|           ? 0 | ||||
| @@ -1092,7 +1092,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total_durasi_response = 0 | ||||
|       count_durasi_response = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(count_durasi_response / total_durasi_response) | ||||
|       options.totalValue = !isFinite(count_durasi_response / total_durasi_response) | ||||
|         ? 0 | ||||
|         : count_durasi_response == 0 | ||||
|           ? 0 | ||||
| @@ -1121,7 +1121,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       count_durasi_recovery = 0 | ||||
|       total_durasi_recovery = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery) | ||||
|       options.totalValue = !isFinite(count_durasi_recovery / total_durasi_recovery) | ||||
|         ? 0 | ||||
|         : count_durasi_recovery == 0 | ||||
|           ? 0 | ||||
|   | ||||
| @@ -1038,7 +1038,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total = 0 | ||||
|       total_selesai = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(total_selesai / total) | ||||
|       options.totalValue = !isFinite(total_selesai / total) | ||||
|         ? 0 | ||||
|         : total_selesai == 0 | ||||
|           ? 0 | ||||
| @@ -1051,7 +1051,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total = 0 | ||||
|       total_inproses = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(total_inproses / total) | ||||
|       options.totalValue = !isFinite(total_inproses / total) | ||||
|         ? 0 | ||||
|         : total_inproses == 0 | ||||
|           ? 0 | ||||
| @@ -1080,7 +1080,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total_durasi_response = 0 | ||||
|       count_durasi_response = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(count_durasi_response / total_durasi_response) | ||||
|       options.totalValue = !isFinite(count_durasi_response / total_durasi_response) | ||||
|         ? 0 | ||||
|         : count_durasi_response == 0 | ||||
|           ? 0 | ||||
| @@ -1109,7 +1109,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       count_durasi_recovery = 0 | ||||
|       total_durasi_recovery = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery) | ||||
|       options.totalValue = !isFinite(count_durasi_recovery / total_durasi_recovery) | ||||
|         ? 0 | ||||
|         : count_durasi_recovery == 0 | ||||
|           ? 0 | ||||
|   | ||||
| @@ -1054,7 +1054,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total = 0 | ||||
|       total_selesai = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(total_selesai / total) | ||||
|       options.totalValue = !isFinite(total_selesai / total) | ||||
|         ? 0 | ||||
|         : total_selesai == 0 | ||||
|           ? 0 | ||||
| @@ -1067,7 +1067,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total = 0 | ||||
|       total_inproses = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(total_inproses / total) | ||||
|       options.totalValue = !isFinite(total_inproses / total) | ||||
|         ? 0 | ||||
|         : total_inproses == 0 | ||||
|           ? 0 | ||||
| @@ -1096,7 +1096,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total_durasi_response = 0 | ||||
|       count_durasi_response = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(count_durasi_response / total_durasi_response) | ||||
|       options.totalValue = !isFinite(count_durasi_response / total_durasi_response) | ||||
|         ? 0 | ||||
|         : count_durasi_response == 0 | ||||
|           ? 0 | ||||
| @@ -1125,7 +1125,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       count_durasi_recovery = 0 | ||||
|       total_durasi_recovery = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery) | ||||
|       options.totalValue = !isFinite(count_durasi_recovery / total_durasi_recovery) | ||||
|         ? 0 | ||||
|         : count_durasi_recovery == 0 | ||||
|           ? 0 | ||||
|   | ||||
| @@ -1128,7 +1128,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total = 0 | ||||
|       total_selesai = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(total_selesai / total) | ||||
|       options.totalValue = !isFinite(total_selesai / total) | ||||
|         ? 0 | ||||
|         : total_selesai == 0 | ||||
|           ? 0 | ||||
| @@ -1141,7 +1141,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total = 0 | ||||
|       total_inproses = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(total_inproses / total) | ||||
|       options.totalValue = !isFinite(total_inproses / total) | ||||
|         ? 0 | ||||
|         : total_inproses == 0 | ||||
|           ? 0 | ||||
| @@ -1170,7 +1170,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       total_durasi_response = 0 | ||||
|       count_durasi_response = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(count_durasi_response / total_durasi_response) | ||||
|       options.totalValue = !isFinite(count_durasi_response / total_durasi_response) | ||||
|         ? 0 | ||||
|         : count_durasi_response == 0 | ||||
|           ? 0 | ||||
| @@ -1199,7 +1199,7 @@ const calculateCustomSummary = (options: any) => { | ||||
|       count_durasi_recovery = 0 | ||||
|       total_durasi_recovery = 0 | ||||
|     } else if (options.summaryProcess === 'finalize') { | ||||
|       options.totalValue = isFinite(count_durasi_recovery / total_durasi_recovery) | ||||
|       options.totalValue = !isFinite(count_durasi_recovery / total_durasi_recovery) | ||||
|         ? 0 | ||||
|         : count_durasi_recovery == 0 | ||||
|           ? 0 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user