Commit 488c5a1 1 parent e839b9d commit 488c5a1 Copy full SHA for 488c5a1
File tree 3 files changed +10
-3
lines changed
packages/rainbowkit/src/components/ConnectOptions
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @rainbow-me/rainbowkit ' : patch
3
+ ---
4
+
5
+ Fix error on desktop where selecting Coinbase Wallet while extension was installed would show you the wrong copy.
Original file line number Diff line number Diff line change @@ -176,14 +176,16 @@ export function ConnectDetail({
176
176
label : 'OPEN' ,
177
177
onClick : showWalletConnectModal ,
178
178
}
179
- : qrCode
179
+ : qrCode && qrCodeUri
180
180
? {
181
181
description : `Don\u2019t have the ${ name } app?` ,
182
182
label : 'GET' ,
183
183
onClick : ( ) => changeWalletStep ( WalletStep . Download ) ,
184
184
}
185
185
: {
186
- description : `Confirm connection in ${ shortName || name } ` ,
186
+ description : `Confirm connection in ${
187
+ compactModeEnabled ? shortName || name : name
188
+ } `,
187
189
label : 'RETRY' ,
188
190
onClick : getDesktopDeepLink
189
191
? async ( ) => {
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export function DesktopOptions({ onClose }: { onClose: () => void }) {
50
50
> ( ) ;
51
51
const [ selectedWallet , setSelectedWallet ] = useState < WalletConnector > ( ) ;
52
52
const [ qrCodeUri , setQrCodeUri ] = useState < string > ( ) ;
53
- const hasQrCode = ! ! selectedWallet ?. qrCode ;
53
+ const hasQrCode = ! ! selectedWallet ?. qrCode && qrCodeUri ;
54
54
const [ connectionError , setConnectionError ] = useState ( false ) ;
55
55
const modalSize = useContext ( ModalSizeContext ) ;
56
56
const compactModeEnabled = modalSize === ModalSizeOptions . COMPACT ;
You can’t perform that action at this time.
0 commit comments