Skip to content

Commit

Permalink
Merge pull request #266 from Strong-Potato/248-fix-vote-slide
Browse files Browse the repository at this point in the history
Fix: fix QA
  • Loading branch information
Yamyam-code authored Jan 28, 2024
2 parents f6128e9 + d20fa44 commit 6397a8e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ function TripSpaceItem({data}: PropsData) {
<div
className={styles.container}
onClick={() => {
navigate(`trip/${data.id}`, {state: {id: data.id}});
if (data.startDate) {
navigate(`trip/${data.id}`, {state: {id: data.id}});
} else {
navigate(`trip/${data.id}/selectDate`, {state: {id: data.id}});
}
}}
>
<div className={styles.img_box} style={{padding: data.thumbnail ? 'none' : '26px 12px 32px 20px'}}>
Expand Down

0 comments on commit 6397a8e

Please sign in to comment.