Skip to content

Commit 4823e1c

Browse files
committed
fix: clear other annoying error
1 parent 2456dd6 commit 4823e1c

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

apps/namadillo/src/App/Transfer/TransferDestination.tsx

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -188,22 +188,35 @@ export const TransferDestination = ({
188188
</div>
189189

190190
<div className="mt-3">
191-
<button
192-
type="button"
193-
disabled={
194-
isShieldingTransaction || isSubmitting || !sourceAsset
195-
}
196-
onClick={handleOpenModal}
197-
className={clsx(
198-
"flex justify-between items-center bg-neutral-900 p-2 rounded-sm w-full",
199-
{
200-
"hover:bg-neutral-700 transition-colors":
201-
!isShieldingTransaction,
191+
{!destinationAddress ?
192+
<div className="flex justify-between items-center bg-neutral-900 p-2 rounded-sm w-full">
193+
<div className="flex">
194+
<div className="flex flex-col ml-4">
195+
<span className="text-neutral-500 font-normal">
196+
Select address
197+
</span>
198+
</div>
199+
</div>
200+
<ConnectProviderButton
201+
onClick={handleOpenModal}
202+
disabled={!sourceAsset}
203+
/>
204+
</div>
205+
: <button
206+
type="button"
207+
disabled={
208+
isShieldingTransaction || isSubmitting || !sourceAsset
202209
}
203-
)}
204-
>
205-
<div className="flex">
206-
{destinationAddress && (
210+
onClick={handleOpenModal}
211+
className={clsx(
212+
"flex justify-between items-center bg-neutral-900 p-2 rounded-sm w-full",
213+
{
214+
"hover:bg-neutral-700 transition-colors":
215+
!isShieldingTransaction,
216+
}
217+
)}
218+
>
219+
<div className="flex">
207220
<img
208221
src={
209222
isShieldedAddress ? namadaShieldedIcon
@@ -220,9 +233,7 @@ export const TransferDestination = ({
220233
}
221234
className="w-7"
222235
/>
223-
)}
224-
<div className="flex flex-col ml-4">
225-
{destinationAddress ?
236+
<div className="flex flex-col ml-4">
226237
<div className="flex flex-col">
227238
<span className="text-neutral-500 text-left font-normal text-xs">
228239
{isIbcAddress(destinationAddress) ? "Keplr" : alias}
@@ -231,28 +242,17 @@ export const TransferDestination = ({
231242
{shortenAddress(destinationAddress, 15, 15)}
232243
</span>
233244
</div>
234-
: <span className="text-neutral-500 font-normal">
235-
Select address
236-
</span>
237-
}
245+
</div>
238246
</div>
239-
</div>
240-
{!destinationAddress ?
241-
<>
242-
<ConnectProviderButton
243-
onClick={handleOpenModal}
244-
disabled={!sourceAsset}
245-
/>
246-
</>
247-
: !isShieldingTransaction && (
247+
{!isShieldingTransaction && (
248248
<GoChevronDown
249249
className={clsx(
250250
"mr-3 transition-transform text-neutral-400 text-xs"
251251
)}
252252
/>
253-
)
254-
}
255-
</button>
253+
)}
254+
</button>
255+
}
256256
</div>
257257

258258
{customAddress && (

0 commit comments

Comments
 (0)