Fix typescript

This commit is contained in:
prototypa
2023-08-30 14:06:54 -04:00
parent 17682a3df0
commit 57c22692b6

View File

@ -23,7 +23,7 @@ export const trim = (str = '', ch?: string) => {
export const toUiAmount = (amount: number) => { export const toUiAmount = (amount: number) => {
if (!amount) return 0; if (!amount) return 0;
let value; let value: string;
if (amount >= 1000000000) { if (amount >= 1000000000) {
const formattedNumber = (amount / 1000000000).toFixed(1); const formattedNumber = (amount / 1000000000).toFixed(1);