Skip to content

Commit

Permalink
feat: detailed view conditionally display beneficiary
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstefanequilobe committed Dec 5, 2022
1 parent c771768 commit e015f1d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/blocks/UnitDetailedView.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,11 @@ const UnitDetailedView = ({

if (isRecordRetirement) {
return true;
}

if (isKeyARetirementKey) {
} else if (isKeyARetirementKey) {
return false;
} else {
return true;
}

return true;
};

const getFormattedContentDependingOnKeyValue = useCallback((key, value) => {
Expand Down

0 comments on commit e015f1d

Please sign in to comment.