fix anon zaps (no tip settings)

This commit is contained in:
keyan 2024-07-30 18:09:46 -05:00
parent dc0370ba17
commit 7901f2fe61
1 changed files with 2 additions and 2 deletions

View File

@ -67,10 +67,10 @@ export function DropdownItemUpVote ({ item }) {
)
}
export const defaultTipIncludingRandom = ({ tipDefault, tipRandom, tipRandomMin, tipRandomMax }) =>
export const defaultTipIncludingRandom = ({ tipDefault, tipRandom, tipRandomMin, tipRandomMax } = {}) =>
tipRandom
? Math.floor((Math.random() * (tipRandomMax - tipRandomMin)) + tipRandomMin)
: (tipDefault || 1)
: (tipDefault || 100)
export const nextTip = (meSats, { tipDefault, turboTipping, tipRandom, tipRandomMin, tipRandomMax }) => {
// what should our next tip be?