From 2f3027bb9b24dfd0213d7edaa86ee397c3f29630 Mon Sep 17 00:00:00 2001 From: ignaciosantise <25931366+ignaciosantise@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:54:37 -0300 Subject: [PATCH] fix: changed transportType comparison --- wallets/rn_cli_wallet/android/app/build.gradle | 6 +++--- wallets/rn_cli_wallet/src/modals/SessionProposalModal.tsx | 2 +- .../src/modals/SessionSendTransactionModal.tsx | 2 +- wallets/rn_cli_wallet/src/modals/SessionSignModal.tsx | 2 +- .../rn_cli_wallet/src/modals/SessionSignTypedDataModal.tsx | 2 +- wallets/rn_cli_wallet/src/screens/SessionDetail/index.tsx | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/wallets/rn_cli_wallet/android/app/build.gradle b/wallets/rn_cli_wallet/android/app/build.gradle index 2be8baf0..2d002140 100644 --- a/wallets/rn_cli_wallet/android/app/build.gradle +++ b/wallets/rn_cli_wallet/android/app/build.gradle @@ -125,9 +125,9 @@ android { matchingFallbacks = ['release'] } debug { - applicationIdSuffix ".internal" - versionNameSuffix "-internal" - signingConfig signingConfigs.internal + applicationIdSuffix ".debug" + versionNameSuffix "-debug" + signingConfig signingConfigs.debug } release { minifyEnabled enableProguardInReleaseBuilds diff --git a/wallets/rn_cli_wallet/src/modals/SessionProposalModal.tsx b/wallets/rn_cli_wallet/src/modals/SessionProposalModal.tsx index b6a98b7b..b33a5c41 100644 --- a/wallets/rn_cli_wallet/src/modals/SessionProposalModal.tsx +++ b/wallets/rn_cli_wallet/src/modals/SessionProposalModal.tsx @@ -84,7 +84,7 @@ export default function SessionProposalModal() { handleRedirect({ peerRedirect: session.peer.metadata.redirect, - isLinkMode: session?.transportType === 'link-mode', + isLinkMode: session?.transportType === 'link_mode', }); } catch (e) { console.log((e as Error).message, 'error'); diff --git a/wallets/rn_cli_wallet/src/modals/SessionSendTransactionModal.tsx b/wallets/rn_cli_wallet/src/modals/SessionSendTransactionModal.tsx index a430bd47..23975868 100644 --- a/wallets/rn_cli_wallet/src/modals/SessionSendTransactionModal.tsx +++ b/wallets/rn_cli_wallet/src/modals/SessionSendTransactionModal.tsx @@ -32,7 +32,7 @@ export default function SessionSendTransactionModal() { const request = params?.request; const transaction = request?.params[0]; const method = requestEvent?.params?.request?.method!; - const isLinkMode = session?.transportType === 'link-mode'; + const isLinkMode = session?.transportType === 'link_mode'; const peerMetadata = session?.peer?.metadata as SignClientTypes.Metadata; diff --git a/wallets/rn_cli_wallet/src/modals/SessionSignModal.tsx b/wallets/rn_cli_wallet/src/modals/SessionSignModal.tsx index 327e7b6e..012184e2 100644 --- a/wallets/rn_cli_wallet/src/modals/SessionSignModal.tsx +++ b/wallets/rn_cli_wallet/src/modals/SessionSignModal.tsx @@ -22,7 +22,7 @@ export default function SessionSignModal() { const {data} = useSnapshot(ModalStore.state); const requestEvent = data?.requestEvent; const session = data?.requestSession; - const isLinkMode = session?.transportType === 'link-mode'; + const isLinkMode = session?.transportType === 'link_mode'; const [isLoadingApprove, setIsLoadingApprove] = useState(false); const [isLoadingReject, setIsLoadingReject] = useState(false); diff --git a/wallets/rn_cli_wallet/src/modals/SessionSignTypedDataModal.tsx b/wallets/rn_cli_wallet/src/modals/SessionSignTypedDataModal.tsx index e640c4f5..22cf9525 100644 --- a/wallets/rn_cli_wallet/src/modals/SessionSignTypedDataModal.tsx +++ b/wallets/rn_cli_wallet/src/modals/SessionSignTypedDataModal.tsx @@ -22,7 +22,7 @@ export default function SessionSignTypedDataModal() { const {data} = useSnapshot(ModalStore.state); const requestEvent = data?.requestEvent; const session = data?.requestSession; - const isLinkMode = session?.transportType === 'link-mode'; + const isLinkMode = session?.transportType === 'link_mode'; const [isLoadingApprove, setIsLoadingApprove] = useState(false); const [isLoadingReject, setIsLoadingReject] = useState(false); diff --git a/wallets/rn_cli_wallet/src/screens/SessionDetail/index.tsx b/wallets/rn_cli_wallet/src/screens/SessionDetail/index.tsx index 1c349b6f..f14a2f5b 100644 --- a/wallets/rn_cli_wallet/src/screens/SessionDetail/index.tsx +++ b/wallets/rn_cli_wallet/src/screens/SessionDetail/index.tsx @@ -31,7 +31,7 @@ export default function SessionDetail({route}: Props) { [topic], ); const namespaces = useMemo(() => session?.namespaces, [session]); - const isLinkMode = session?.transportType === 'link-mode'; + const isLinkMode = session?.transportType === 'link_mode'; // Get necessary data from session const expiryDate = useMemo(