Fix invoice amount

This commit is contained in:
ekzyis 2023-10-27 03:35:25 +02:00
parent 227e1737da
commit ecd1dca361

View File

@ -234,7 +234,7 @@ export const useInvoiceable = (onSubmit, options = defaultOptions) => {
const onSubmitWrapper = useCallback(async (formValues, ...submitArgs) => {
let { cost, imageFeesInfo, amount } = formValues
cost ??= amount
if (imageFeesInfo?.fees) cost += imageFeesInfo.fees
if (imageFeesInfo?.totalFees) cost += imageFeesInfo.totalFees
// action only allowed if logged in
if (!me && options.requireSession) {