Skip to content

Commit

Permalink
Merge pull request #1854 from SUNET/eunju-styling-confirm
Browse files Browse the repository at this point in the history
Eunju styling confirm
  • Loading branch information
eunjuhuss authored Sep 25, 2024
2 parents 255d209 + 4cd66c9 commit a853626
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Dashboard/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function DataStatus(props: DataStatusProps) {
if (!props.verified) {
return (
<EduIDButton
className={`${props.name ? "disabled" : ""}`}
className={`${props.name === "number" && "disabled"}`}
buttonstyle="link"
size="sm"
onClick={props.handleStartConfirmation}
Expand Down
3 changes: 1 addition & 2 deletions src/components/Dashboard/Recommendations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ export function Recommendations(): JSX.Element | null {
const credentials = useAppSelector((state) => state.security.credentials);
const phones = useAppSelector((state) => state.phones.phones);
const identities = useAppSelector((state) => state.personal_data.response?.identities);
const verifiedNumber = phones?.some((num) => num.verified === true);
const tokens = credentials.filter(
(cred: CredentialType) =>
cred.credential_type == "security.u2f_credential_type" ||
Expand All @@ -136,7 +135,7 @@ export function Recommendations(): JSX.Element | null {
}
}, [isLoaded]);

if (identities?.nin?.verified && verifiedNumber && tokens.length && given_name) {
if (identities?.nin?.verified && tokens.length && given_name) {
return null;
}

Expand Down

0 comments on commit a853626

Please sign in to comment.