Skip to content

Commit

Permalink
ui: fix few warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed May 16, 2020
1 parent f56ab69 commit ab16bcc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 1 addition & 3 deletions src/pages/InviteRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import './InviteRequest.css';

function InviteRequest({ identities, request, state }) {
const [ identityKey, setIdentityKey ] = useState(null);
const [ identityKey, setIdentityKey ] = useState(identities[0].publicKey);

const options = identities.map((identity) => {
return <option key={identity.publicKey} value={identity.publicKey}>
Expand All @@ -25,8 +25,6 @@ function InviteRequest({ identities, request, state }) {
identity = identities.find((identity) => {
return identity.publicKey === identityKey;
});
} else {
setIdentityKey(identities[0].publicKey);
}

const onIdentityKey = (e) => {
Expand Down
4 changes: 0 additions & 4 deletions src/redux/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ export function ExternalLink(props) {

ExternalLink.propTypes = {
href: PropTypes.string,
children: PropTypes.oneOfType([
PropTypes.element,
PropTypes.arrayOf(PropTypes.element.isRequired),
]),
};

export function enrichMessage(message) {
Expand Down

0 comments on commit ab16bcc

Please sign in to comment.