From 0effc065c668436bb50c77a05a7bb54c76afa840 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 15 May 2023 01:34:51 +0200 Subject: [PATCH] Mix default and custom tips during sort --- components/item-act.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/item-act.js b/components/item-act.js index 1e6da5ae..742ae8f5 100644 --- a/components/item-act.js +++ b/components/item-act.js @@ -8,8 +8,8 @@ import { amountSchema } from '../lib/validate' const defaultTips = [100, 1000, 10000, 100000] const Tips = ({ setOValue }) => { - const customTips = getCustomTips().sort((a, b) => a - b) - return [...customTips, ...defaultTips].map(num => + const tips = [...getCustomTips(), ...defaultTips].sort((a, b) => a - b) + return tips.map(num =>