Mix default and custom tips during sort

This commit is contained in:
ekzyis 2023-05-15 01:34:51 +02:00 committed by Keyan
parent c05a76d664
commit 0effc065c6
1 changed files with 2 additions and 2 deletions

View File

@ -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 =>
<Button
size='sm'
className={`${num > 1 ? 'ml-2' : ''} mb-2`}