From c7a96e1b4320586888f33ff67513e535dab6c333 Mon Sep 17 00:00:00 2001 From: Vedant Jain <144506139+jscafe-dev@users.noreply.github.com> Date: Fri, 21 Jun 2024 15:19:43 +0530 Subject: [PATCH] [CAL-3940] randomize Tip Sidebar (#15469) Co-authored-by: Peer Richelsen --- packages/features/tips/Tips.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/features/tips/Tips.tsx b/packages/features/tips/Tips.tsx index 2501f45efc..465eec12e4 100644 --- a/packages/features/tips/Tips.tsx +++ b/packages/features/tips/Tips.tsx @@ -1,3 +1,5 @@ +// eslint-disable-next-line no-restricted-imports +import shuffle from "lodash/shuffle"; import { useState, memo } from "react"; import { useLocale } from "@calcom/lib/hooks/useLocale"; @@ -111,7 +113,7 @@ export const tips = [ }, ]; -const reversedTips = tips.slice(0).reverse(); +const reversedTips = shuffle(tips).slice(0).reverse(); function Tips() { const { t } = useLocale();