From 2aaf87b8d37f03c8cba87f5c5c1a7dd658ddb600 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Mon, 6 Oct 2025 13:25:41 +0800 Subject: [PATCH] Separated global function --- src/pages/MainPage/Main.tsx | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/pages/MainPage/Main.tsx b/src/pages/MainPage/Main.tsx index 588505d..a5b9cc8 100644 --- a/src/pages/MainPage/Main.tsx +++ b/src/pages/MainPage/Main.tsx @@ -65,7 +65,6 @@ export default () => { setLocation(op.result5[0]) setType(op.result6[0]) setDateOp(dayjs(op.result10[0]).format('MMMM DD, YYYY')) - // setClient(displayFullname(op.result2[0], op.result3[0], op.result4[0])) setApplicationId(op.result11[0]) setAssessorId(op.result12[0]) setTotalOp(calculateTotal(op.result9)) @@ -81,20 +80,6 @@ export default () => { return total } - // const displayFullname = (firstname: string, middleinitial: string, lastname: string) => { - // let result - // if (firstname.length > 0) { - // if (middleinitial.length > 0) { - // result = `${firstname} ${middleinitial}. ${lastname}` - // } else { - // result = `${firstname} ${lastname}` - // } - // } else { - // result = lastname - // } - // return result - // } - const approveHandler = async (application: string) => { let signed: boolean = false let forprinting: boolean = false