Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
vagusX committed Mar 30, 2022
1 parent d3c4745 commit 4d62801
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface SegmentedProps extends React.HTMLProps<HTMLDivElement> {
motionName?: string;
}

function getValidtitle(option: SegmentedLabeledOption) {
function getValidTitle(option: SegmentedLabeledOption) {
if (typeof option.title !== 'undefined') {
return option.title;
}
Expand All @@ -51,11 +51,11 @@ function getValidtitle(option: SegmentedLabeledOption) {
function normalizeOptions(options: SegmentedOptions): SegmentedLabeledOption[] {
return options.map((option) => {
if (typeof option === 'object' && option !== null) {
const validtitle = getValidtitle(option);
const validTitle = getValidTitle(option);

return {
...option,
title: validtitle,
title: validTitle,
};
}

Expand Down

0 comments on commit 4d62801

Please sign in to comment.