Skip to content

Commit

Permalink
Merge branch 'dev' into renovate/contracts-eslintprettier
Browse files Browse the repository at this point in the history
  • Loading branch information
pbennett authored Sep 12, 2024
2 parents d6bc615 + e1e3f34 commit 627f1a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/ui/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'

import { cn } from '@/utils/ui'

export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}
export type InputProps = React.InputHTMLAttributes<HTMLInputElement>

const Input = React.forwardRef<HTMLInputElement, InputProps>(
({ className, type, ...props }, ref) => {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/utils/copyToClipboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function copyToClipboard(event: React.MouseEvent<HTMLButtonElement>) {
toast.message('Copied to clipboard', {
description: text,
})
} catch (error) {
} catch {
toast.error('Copying to clipboard failed')
}
}
Expand Down
6 changes: 3 additions & 3 deletions ui/src/utils/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function convertFromBaseUnits(
const divisor = decimals ? new Big(10).pow(Number(decimals)) : new Big(1)
const bigAmount = typeof amount === 'bigint' ? new Big(amount.toString()) : new Big(amount)
return bigAmount.div(divisor).toNumber()
} catch (error) {
} catch {
return NaN
}
}
Expand All @@ -42,7 +42,7 @@ export function convertToBaseUnits(
const multiplier = decimals ? new Big(10).pow(Number(decimals)) : new Big(1)
const bigAmount = typeof amount === 'bigint' ? new Big(amount.toString()) : new Big(amount)
return bigAmount.times(multiplier).toNumber()
} catch (error) {
} catch {
return NaN
}
}
Expand Down Expand Up @@ -103,7 +103,7 @@ export function formatAmount(
}

fixedAmount = bigAmount.toFixed(precision)
} catch (error) {
} catch {
return 'NaN'
}

Expand Down

0 comments on commit 627f1a8

Please sign in to comment.