Skip to content

Commit

Permalink
Truncates keys over 80 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
CGoodwin90 committed Oct 24, 2023
1 parent 6aa243b commit 49af0b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/NewEnvironment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ const NewEnvironment = ({
{loadingDK ? <div className="loader"></div>
: !showDKField ?
hashValue(dkValue).substring(0, 25)
: dkValue
: dkValue.length > 80 ?
dkValue.substring(0, 80) + '...'
: dkValue
}
</div>
<span className="showHide" onClick={() => setShowDKField(!showDKField)}>
Expand Down

0 comments on commit 49af0b3

Please sign in to comment.