diff --git a/components/OptionSelector.js b/components/OptionSelector.js index e4417f4..712b13b 100644 --- a/components/OptionSelector.js +++ b/components/OptionSelector.js @@ -7,10 +7,10 @@ export default function OptionSelector({options, selected, setOption}) { return ( { - options.map(option => { + options.map((option, index) => { const optionSelected = selected === option return ( - setOption(option)} style={{flex: 1, justifyContent: 'flex-end', alignItems: 'center', borderColor: optionSelected ? colors.brand : colors.tertiary, borderBottomWidth: 2}}> + setOption(option)} style={{flex: 1, justifyContent: 'flex-end', alignItems: 'center', borderColor: optionSelected ? colors.brand : colors.tertiary, borderBottomWidth: 2}}> {option.toUpperCase()} )