Skip to content

Commit

Permalink
Fix require pin for paymetns
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Oct 17, 2024
1 parent 3588942 commit 02839f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/features/account/AccountActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ const AccountActionBar = ({

const handleAction = useCallback(
(type: Action) => () => {
console.log("THing", requirePinForPayment, pin)

Check failure on line 53 in src/features/account/AccountActionBar.tsx

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement

Check failure on line 53 in src/features/account/AccountActionBar.tsx

View workflow job for this annotation

GitHub Actions / build

Replace `"THing"` with `'THing'`

Check failure on line 53 in src/features/account/AccountActionBar.tsx

View workflow job for this annotation

GitHub Actions / build

Strings must use singlequote
switch (type) {
case 'send': {
if (pin?.status === 'on' && requirePinForPayment) {
if (
(pin?.status === 'on' || pin?.status === 'restored') &&
requirePinForPayment
) {
navigation.navigate('ConfirmPin', { action: 'payment' })
} else {
navigation.navigate('PaymentScreen', {
Expand Down

0 comments on commit 02839f3

Please sign in to comment.