Skip to content

Commit 6460146

Browse files
jscafe-devPeerRich
andauthored
[CAL-3940] randomize Tip Sidebar (#15469)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
1 parent 0288ea9 commit 6460146

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/features/tips/Tips.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// eslint-disable-next-line no-restricted-imports
2+
import shuffle from "lodash/shuffle";
13
import { useState, memo } from "react";
24

35
import { useLocale } from "@calcom/lib/hooks/useLocale";
@@ -111,7 +113,7 @@ export const tips = [
111113
},
112114
];
113115

114-
const reversedTips = tips.slice(0).reverse();
116+
const reversedTips = shuffle(tips).slice(0).reverse();
115117

116118
function Tips() {
117119
const { t } = useLocale();

0 commit comments

Comments
 (0)