Skip to content

Commit

Permalink
fix: changed transportType comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaciosantise committed Aug 28, 2024
1 parent 3613d0f commit 2f3027b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions wallets/rn_cli_wallet/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion wallets/rn_cli_wallet/src/modals/SessionProposalModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion wallets/rn_cli_wallet/src/modals/SessionSignModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion wallets/rn_cli_wallet/src/screens/SessionDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2f3027b

Please sign in to comment.