Skip to content

Commit 0366cfe

Browse files
author
Amy Chen
committed
fix comment, variable
1 parent 888319e commit 0366cfe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ui-client/src/components/Attestation/CustomAttestationConfirmation.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ export default class CustomAttestationConfirmation extends React.PureComponent<P
3333
const phiDisplay = isIdentified ? 'Identified' : 'Deidentified';
3434
const showText = config && config.attestation.enabled;
3535
const useHtml = config.attestation.type && config.attestation.type === CustomAttestationType.Html;
36+
const skipModeSelection = config && config.attestation.skipModeSelection;
3637

3738
return (
3839
<div className={confirmationClass}>
3940
<div>
4041

41-
{/* Else use custom text */}
42+
{/* use custom text */}
4243
{useHtml &&
4344
<div className={`${c}-custom-html`} dangerouslySetInnerHTML={ {__html: config.attestation.text.join("")} }></div>
4445
}
@@ -59,14 +60,14 @@ export default class CustomAttestationConfirmation extends React.PureComponent<P
5960
{useDisplay} - {phiDisplay}
6061
</Col> */}
6162
{!(isSubmittingAttestation || hasAttested) &&
62-
<Col md={config && config.attestation.skipModeSelection ? 12: 6} className={`${config && config.attestation.skipModeSelection ? "" : "right"}`}>
63+
<Col md={skipModeSelection ? 12: 6} className={`${skipModeSelection ? "" : "right"}`}>
6364
<Button
6465
onClick={handleIAgreeClick}
6566
tabIndex={-1}
6667
className="leaf-button leaf-button-primary">
6768
Access the Data Exploration Tool
6869
</Button>
69-
{config && !config.attestation.skipModeSelection &&
70+
{!skipModeSelection &&
7071
<Button
7172
onClick={handleGoBackClick}
7273
tabIndex={-1}

0 commit comments

Comments
 (0)