Skip to content

Commit

Permalink
fix(mobile): Don't set to uppercase promocode
Browse files Browse the repository at this point in the history
  • Loading branch information
voloshinskii committed Jan 19, 2024
1 parent 478b607 commit e86cf37
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ import { tk } from '../../tonkeeper';
export const RechargeByPromoModal = memo(() => {
const [code, setCode] = useState<string>('');
const { goBack } = useNavigation();
const onChangeText = useCallback(
(text: string) => {
setCode(text.toUpperCase());
},
[setCode],
);

const applyPromo = useCallback(async () => {
const data = await tk.wallet.battery.applyPromo(code);
Expand All @@ -44,7 +38,7 @@ export const RechargeByPromoModal = memo(() => {
label={t('battery.promocode.placeholder')}
withClearButton
value={code}
onChangeText={onChangeText}
onChangeText={setCode}
/>
<Spacer y={32} />
<Button onPress={applyPromo} title={t('battery.promocode.apply')} />
Expand Down

0 comments on commit e86cf37

Please sign in to comment.