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

Fix errors from type casting in UI #141

Merged
merged 2 commits into from
Oct 1, 2021
Merged

Fix errors from type casting in UI #141

merged 2 commits into from
Oct 1, 2021

Conversation

noahingh
Copy link
Member

@noahingh noahingh commented Oct 1, 2021

No description provided.

@noahingh noahingh added the bug Something isn't working label Oct 1, 2021
@noahingh noahingh added this to the First Release milestone Oct 1, 2021
@@ -32,9 +32,9 @@ export default function ApproversSelect(props: ApproversSelectProps): JSX.Elemen
}, 800)

const _onSelectCandidate = (id: string) => {
const candidate = props.candidates.find(c => c.id.toString() ===id)
const candidate = props.candidates.find(c => c.id === parseInt(id))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual type of id is the number in the console.

@noahingh noahingh merged commit ac2b0c1 into main Oct 1, 2021
@noahingh noahingh deleted the fix-approval-ui branch October 1, 2021 09:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant