Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"build:android:release": "export NODE_OPTIONS=--openssl-legacy-provider && ./scripts/android-release.sh",
"postbuild:android:release": "yarn reset:prod",
"lint": "eslint --fix . --ext .js,.jsx,.ts,.tsx",
"validate": "tsc --noEmit --skipLibCheck 2>&1 | grep -v node_modules | grep -E 'TS(2304|2693|2349|2351|2448|2554|2307|2454|2305|2774)' && exit 1 || exit 0",
"validate": "tsc --noEmit --skipLibCheck 2>&1 | grep -v node_modules | grep -E 'TS(2304|2693|2349|2351|2448|2554|2307|2454|2305|2774|2532|18048)' && exit 1 || exit 0",
"prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
"prettier:check": "prettier --check \"src/**/*.{js,jsx,ts,tsx}\"",
"postinstall": "./scripts/postinstall.sh",
Expand Down
3 changes: 2 additions & 1 deletion src/navigation/tabs/home/components/AssetRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ const AssetRow: React.FC<Props> = ({
const [loadingDelayElapsed, setLoadingDelayElapsed] = useState(false);
const preservedEntry = lastSettledItemRef.current;
const preservedItem =
preservedEntry?.presentationResetToken === presentationResetToken
preservedEntry &&
preservedEntry.presentationResetToken === presentationResetToken
? preservedEntry.item
: undefined;

Expand Down
4 changes: 3 additions & 1 deletion src/navigation/wallet/screens/send/confirm/BillConfirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,9 @@ const BillConfirm: React.FC<
showPaymentSent({
onCloseModal,
title:
wallet?.credentials?.n > 1 ? t('Payment Sent') : t('Payment Accepted'),
(wallet?.credentials?.n ?? 0) > 1
? t('Payment Sent')
: t('Payment Accepted'),
});
dispatch(ShopEffects.startFindBillPayments()).catch(_ => {});
dispatch(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ const Confirm = () => {
showPaymentSent({
onCloseModal,
title:
wallet?.credentials?.n > 1 ? t('Payment Sent') : t('Payment Accepted'),
(wallet?.credentials?.n ?? 0) > 1
? t('Payment Sent')
: t('Payment Accepted'),
});

await sleep(1200);
Expand Down
4 changes: 2 additions & 2 deletions src/store/wallet-connect-v2/wallet-connect-v2.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const walletConnectV2Init = (): Effect => async (dispatch, getState) => {

Object.values(activeSessions).forEach(activeSession => {
if (
sessions.length &&
sessions?.length &&
!sessions.some(s => s.topic === activeSession.topic)
) {
dispatch(walletConnectV2OnDeleteSession(activeSession.topic));
Expand Down Expand Up @@ -513,7 +513,7 @@ export const walletConnectV2SubscribeToEvents =
);
const requests: WCV2RequestType[] | undefined =
getState().WALLET_CONNECT_V2.requests;
const request = requests.find(({id}) => id === event.id);
const request = requests?.find(({id}) => id === event.id);
if (request) {
await dispatch(walletConnectV2RejectCallRequest(request));
}
Expand Down
Loading