Skip to content

Open source personal finance application

fix(WalletForm): fix default color

ilkomefbddcd6d353f
diff --git a/components/wallets/getForm.ts b/components/wallets/getForm.ts
index e6d2787b..9fe58b27 100644
--- a/components/wallets/getForm.ts
+++ b/components/wallets/getForm.ts
@@ -10,6 +10,6 @@ export function getPreparedFormData(values?: any): WalletForm {
description: values?.description ?? null,
currency: values?.currency ?? 'USD',
countTotal: values?.countTotal ?? true,
- color: values?.color ?? random(allColors),
+ color: values?.color ?? random(random(allColors)),
}
}