Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function QuoteRefreshProgress() {
<div className="flex items-center justify-center gap-1">
<div className="relative inline-block">
<div
className="tooltip tooltip-bottom tooltip-primary relative flex items-center justify-center"
className="tooltip tooltip-bottom tooltip-primary relative flex items-center justify-center tabular-nums"
data-tip={`Quote will update in ${timeRemaining}s`}
>
<svg className="-rotate-90 transform" height={radius * 2} width={radius * 2}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ export const useTokenSelection = () => {
return;
}

if (!isFiatToken) {
await setSelectedNetwork(tokenDefinition.network);
}

if (rampDirection === RampDirection.BUY) {
if (tokenSelectModalType === "from") {
setFiatToken(token as FiatToken);
Expand All @@ -52,6 +48,11 @@ export const useTokenSelection = () => {
setFiatToken(token as FiatToken);
}
}

if (!isFiatToken) {
await setSelectedNetwork(tokenDefinition.network);
}

closeTokenSelectModal();
};

Expand Down