Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
Fix user avatar color order (#209)
Luke Vella000d105983c1
diff --git a/src/components/poll/user-avatar.tsx b/src/components/poll/user-avatar.tsxindex 55a78a3e4..5368b18c0 100644--- a/src/components/poll/user-avatar.tsx+++ b/src/components/poll/user-avatar.tsx@@ -46,9 +46,7 @@ export const UserAvatarProvider: React.VoidFunctionComponent<{"": defaultColor,};for (let i = 0; i < names.length; i++) {- const lastIndex = names.length - 1;- // start from the end since the names is "most recent" first.- const name = names[lastIndex - i].trim().toLowerCase();+ const name = names[i].trim().toLowerCase();const color = colors[(seedValue + i) % colors.length];res[name] = color;}