Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/bounty paid state #819

Merged
merged 10 commits into from
Oct 19, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ function MobileView(props: CodingBountiesProps) {
color: color.borderGreen1
}}
text={'Mark Unpaid'}
loading={saving === 'paid'}
loading={saving === 'paid' || updatingPayment}
endingImg={'/static/mark_unpaid.svg'}
textStyle={{
width: '130px',
Expand All @@ -607,9 +607,12 @@ function MobileView(props: CodingBountiesProps) {
fontFamily: 'Barlow',
marginLeft: '30px'
}}
onClick={(e: any) => {
onClick={async (e: any) => {
e.stopPropagation();
tobi-bams marked this conversation as resolved.
Show resolved Hide resolved
updatePaymentStatus(created || 0);
setUpdatingPayment(true)
await updatePaymentStatus(created || 0);
setLocalPaid(false)
setUpdatingPayment(false)
}}
/>
) : (
Expand Down