diff --git a/frontend/app/src/people/widgetViews/summaries/wantedSummaries/CodingBounty.tsx b/frontend/app/src/people/widgetViews/summaries/wantedSummaries/CodingBounty.tsx index 9f08870ec..fd9484b63 100644 --- a/frontend/app/src/people/widgetViews/summaries/wantedSummaries/CodingBounty.tsx +++ b/frontend/app/src/people/widgetViews/summaries/wantedSummaries/CodingBounty.tsx @@ -248,7 +248,14 @@ function MobileView(props: CodingBountiesProps) { await main.makeBountyPayment(body); } else { - generateInvoice(price || 0); + return setToasts([ + { + id: `${Math.random()}`, + title: 'Insufficient funds in the organization.', + color: 'danger', + toastLifeTimeMs: 10000 + } + ]); } } else { generateInvoice(price || 0); @@ -1210,6 +1217,7 @@ function MobileView(props: CodingBountiesProps) { )} + );