Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit 0dd68ec

Browse files
author
Evan Horne
committed
fix(item card condensed): now 1 click to redirect
1 parent da5fe3f commit 0dd68ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ItemCard/ItemCardCondensed.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ export class ItemCardCondensed extends React.Component<
3232
nextProps: Readonly<ItemCardModels.ItemCardModel>,
3333
nextState: Readonly<ItemCardCondensedState>
3434
): boolean {
35-
return this.state.redirect;
35+
return nextState.redirect;
3636
}
3737

3838
handleKeyPress = (e: React.KeyboardEvent<HTMLElement>) => {
3939
if (e.keyCode === 13 || e.keyCode === 23) {
4040
this.setState({ redirect: true });
4141
}
4242
};
43+
4344
handleOnClick = () => {
4445
this.setState({ redirect: true });
4546
};

0 commit comments

Comments
 (0)