Skip to content
Open
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
2 changes: 1 addition & 1 deletion components/bento-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const itemVariants = {
y: 0,
transition: {
duration: 0.6,
ease: [0.22, 1, 0.36, 1],
ease: [0.22, 1, 0.36, 1] as const,
},
},
}
Expand Down
8 changes: 4 additions & 4 deletions components/dashboard/eth-price-ticker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export function EthPriceTicker() {
const loading = ethBalance?.priceLoading ?? false
const error = ethBalance?.priceError ?? null

const formatPrice = (value: number | null) => {
if (value === null) return "—"
const formatPrice = (value: number | null | undefined) => {
if (value === null || value === undefined) return "—"
return `$${value.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`
}

Expand Down Expand Up @@ -60,14 +60,14 @@ export function EthPriceTicker() {
)}
</AnimatePresence>
</div>

{lastUpdated && !loading && (
<div className="flex items-center gap-1 text-xs text-muted-foreground">
<RefreshCw className="w-3 h-3" />
<span>Updated {lastUpdated.toLocaleTimeString()}</span>
</div>
)}

<button
onClick={refetch}
disabled={loading}
Expand Down
2 changes: 1 addition & 1 deletion components/dashboard/quick-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function QuickActions({ onSwap, onSend, onReceive }: QuickActionsProps) {
else if (action.action === "send") onSend()
else if (action.action === "receive") onReceive()
else if (action.action === "onramp") router.push("/onramp")
else if (action.action === "bills") console.info("Pay Bills coming soon")
else if (action.action === "bills") console.warn("Pay Bills coming soon")
}}
className="flex flex-col items-center gap-2 p-4 rounded-xl bg-muted hover:bg-muted/80 transition-colors"
>
Expand Down
2 changes: 1 addition & 1 deletion components/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const textRevealVariants = {
y: 0,
transition: {
duration: 0.8,
ease: [0.22, 1, 0.36, 1],
ease: [0.22, 1, 0.36, 1] as const,
delay: i * 0.1,
},
}),
Expand Down
5 changes: 3 additions & 2 deletions components/onramp/onramp-page-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function OnrampPageClient() {

useEffect(() => {
if (!loading && !connected) {
// eslint-disable-next-line react-hooks/set-state-in-effect
setWalletModalOpen(true)
}
}, [loading, connected])
Expand Down Expand Up @@ -100,8 +101,8 @@ export function OnrampPageClient() {
form.state.paymentMethod === "bank_transfer"
? "FREE"
: form.state.paymentMethod === "card"
? `${formatCurrency(form.fees.processingFee, form.state.fiatCurrency)} (1.5%)`
: `${formatCurrency(form.fees.processingFee, form.state.fiatCurrency)} (0.5%)`
? `${formatCurrency(form.fees.processingFee, form.state.fiatCurrency)} (1.5%)`
: `${formatCurrency(form.fees.processingFee, form.state.fiatCurrency)} (0.5%)`

if (loading) {
return (
Expand Down
9 changes: 7 additions & 2 deletions hooks/use-wallet-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@ export function useWalletConnection() {
const parsedList = storedList ? (JSON.parse(storedList) as string[]) : []
const normalizedList = parsedList.filter(Boolean)

let finalAddresses = normalizedList
if (storedAddress && !normalizedList.includes(storedAddress)) {
normalizedList.unshift(storedAddress)
finalAddresses = [storedAddress, ...normalizedList]
}

setAddresses(normalizedList)
// eslint-disable-next-line react-hooks/set-state-in-effect
setAddresses(finalAddresses)
// eslint-disable-next-line react-hooks/set-state-in-effect
setAddress(storedAddress)
// eslint-disable-next-line react-hooks/set-state-in-effect
setConnected(isValidStellarAddress(storedAddress))
// eslint-disable-next-line react-hooks/set-state-in-effect
setLoading(false)
}, [])

Expand Down
Loading