Skip to content

Commit

Permalink
fix console errors (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
LordCheta authored Mar 18, 2024
1 parent b26a4d9 commit 4a88c9a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/auth/components/LoginFormComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const LoginFormComponent = ({
};

const AddAccountButton = () => (
<button type="button" onClick={() => setShowLogin(!showLogin)} className={showLogin && 'active'}>
<button type="button" onClick={() => setShowLogin(!showLogin)} className={showLogin ? 'active' : undefined}>
{`+ ${strings.add_account}`}
</button>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const mapStateToProps = (state, ownProps) => ({
...ownProps.strings,
error_message: state.newAdmin.domainInfo.registryOwnerError,
},
validationChainId: state.auth.network,
validationChainId: state.auth.network.toString(),
});

const mapDispatchToProps = dispatch => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const mapStateToProps = (state, ownProps) => ({
currentAddress: state.auth.address,
value: state.auth.address,
validate: true,
validationChainId: state.auth.network,
validationChainId: state.auth.network.toString(),
strings: {
...ownProps.strings,
error_message: state.newAdmin.domainInfo.errorMessage,
Expand Down
2 changes: 1 addition & 1 deletion src/app/tabs/resolve/components/ResolveComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class ResolveComponent extends Component {
type="text"
value={value}
onChange={this.resolveValueChange}
className={!isValid && 'is-invalid'}
className={isValid ? undefined : 'is-invalid'}
placeholder={strings.resolve_placeholder}
/>
<div className="invalid-feedback">
Expand Down
2 changes: 1 addition & 1 deletion src/app/tabs/resolve/components/ResolveContentComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const ResolveContentComponent = ({ strings, content }) => {
);

return Object.entries(content).map((item) => {
if (item[1].loading || item[1].content === '') {
if (item[1].loading || item[1].content === '' || item[1].value === null) {
return (<></>);
}
switch (item[0]) {
Expand Down
2 changes: 1 addition & 1 deletion src/app/tabs/resolve/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const initialState = {
value: null,
error: null,
},
content: [],
content: {},
};

const reducer = (state = initialState, action) => {
Expand Down

0 comments on commit 4a88c9a

Please sign in to comment.