fixed add family btn

This commit was merged in pull request #506.
This commit is contained in:
victorAnumudu
2023-11-09 07:09:24 +01:00
parent 32171ae3ce
commit 5e94ddee48
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ export default function FamilyTable({
</div>
<div className="flex flex-col flex-[0.9]">
<h1 className="font-bold text-xl text-dark-gray dark:text-white whitespace-nowrap">
{`${firstname} ${lastname} (${age})`}
{`${firstname} ${lastname} (${age < 10 ? `0${age}` : age})`}
</h1>
<span className="text-sm text-thin-light-gray">
Added: <span className="text-purple ml-1">{addedDate}</span>
+1 -1
View File
@@ -151,7 +151,7 @@ export default function FamilyAcc() {
>
Family Accounts
</span>
{familyList.length < process.env.REACT_APP_MAX_FAMILY_MEMBERS &&
{familyList?.result_list?.length < process.env.REACT_APP_MAX_FAMILY_MEMBERS &&
!loader && (
<button
onClick={popUpHandler}