diff --git a/src/App.tsx b/src/App.tsx index 94b09fe..2a895a9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -60,31 +60,31 @@ const App = () => { } /> - } /> - } /> - } /> - } /> - diff --git a/src/SigningOrderDiagram .tsx b/src/SigningOrderDiagram .tsx index a0839ad..bcce4e7 100644 --- a/src/SigningOrderDiagram .tsx +++ b/src/SigningOrderDiagram .tsx @@ -97,7 +97,7 @@ const SigningOrderDiagram : React.FC = (signers) => { if (signer.completed) { bgColor = "bg-green-500"; icon = ; - } else if (order === currentProcessingOrder) { + } else if (order == currentProcessingOrder) { bgColor = "bg-yellow-500"; icon = ; } else { @@ -111,7 +111,7 @@ const SigningOrderDiagram : React.FC = (signers) => { className={`w-10 h-10 rounded-full flex items-center justify-center text-white text-sm font-semibold ${bgColor}`} title={signer?.name} > - {(signer?.name !== '' || signer?.roleName) ? getInitials(signer?.name || signer?.roleName) : ""} + {(signer?.name != '' || signer?.roleName) ? getInitials(signer?.name || signer?.roleName) : ""} {icon} diff --git a/src/components/CommonNav.tsx b/src/components/CommonNav.tsx index e5834a5..c75692d 100644 --- a/src/components/CommonNav.tsx +++ b/src/components/CommonNav.tsx @@ -87,7 +87,7 @@ const CommonNav: React.FC = ({ } useEffect(() => { - if (initial !== "") return + if (initial != "") return console.log(userDetailsAsync, 'line 89') let initialN = (userDetailsAsync.firstName && userDetailsAsync.firstName[0]) initialN = initialN + "" + (userDetailsAsync.lastName && userDetailsAsync.lastName[0]) @@ -121,7 +121,7 @@ const CommonNav: React.FC = ({ if (!accountsOpen) { setLoadingAccounts(true); - if (accounts.length === 0 || hasModalBeenClosed) { + if (accounts.length == 0 || hasModalBeenClosed) { await getAccountDetails(); setHasModalBeenClosed(false); } @@ -278,7 +278,7 @@ const CommonNav: React.FC = ({ // Special case: if first segment is 's' and next is 'settings', remove 's' const pathnames = - rawPathnames[0] === "s" && rawPathnames[1] === "settings" + rawPathnames[0] == "s" && rawPathnames[1] == "settings" ? rawPathnames.slice(1) : rawPathnames; @@ -298,7 +298,7 @@ const CommonNav: React.FC = ({ const accIndex = pathnames.indexOf("accounts"); const txnIndex = pathnames.indexOf("transactions"); - if (accIndex !== -1 && txnIndex !== -1 && txnIndex > accIndex) { + if (accIndex != -1 && txnIndex != -1 && txnIndex > accIndex) { // keep only "transactions" and everything after it filteredPathnames = pathnames.slice(txnIndex); } @@ -336,13 +336,13 @@ const CommonNav: React.FC = ({ {/* Breadcrumb Navigation */}